PARUL UNIVERSITY - Faculty of Engineering and Technology
PARUL UNIVERSITY - Faculty of Engineering and Technology
Contents:
Teaching
Sr. Topic Weightage
Hrs.
Number System:
Array:
String:
8 10% 4
string , string storage , Built-in-string functions
User-Defined Functions:
Pointers:
File Management in C:
13 5% 3
Introduction to file management and its functions
*Continuous Evaluation:
It consists of Assignments/Seminars/Presentations/Quizzes/Surprise Tests (Summative/MCQ) etc.
Reference Books:
1. Programming in ANSI C (TextBook)
E. Balaguruswamy; Tata McGraw-Hill
2. C Programming: Test Your Skills
Ashok Kamthane
3. Computer Fundamentals
P.K.Sinha and Priti Sinha; BPB Publications; 4th Edition
4. Star C Programming (TextBook)
; STAR Certification; C Certification Exam
5. Programming with C
Byron Gottfried; Tata McGraw Hill Education
6. C The Complete Reference
Herbert Schildt
Course Outcome:
After Learning the course the students shall be able to:
1.Understand Concepts of computer programming language.
2.Develop the algorithms for solving Engineering problems.
3.Write, compile and debug programs with C compiler
List of Practical:
1. Practical Set 1 (Basics)
1. Write a program to print HELLO FRIENDS!
2. Write a program that reads two nos. from key board and gives their addition, subtraction,
multiplication, division and modulo.
3. Write a program to calculate area of circle,use Ω as symbolic constants.
4. Write a program to convert days into months and days.
5. Write a program which calculates the summation of three digits from the given 3 digit
number.
6. Write a program to demonstrate enumerates data type.
7. Write a program to compute Fahrenheit from centigrade.
8. Write a program to calculate simple interest.
9. Read the price of item in decimal form e.g. 12.50 and separate Rs and Paise from the given
value e.g. 12 rupees and 50 paise.
2. Practical Set 2 (Control Structures)
1. Write a program to find the largest of the three nos. using Nested-If-Else statement.
2. Write a C program to enter a character and to check whether it is a small letter or it is a capital
letter or it is a digit or it is a special symbol.
3. Write a program to read marks from keyboard and your program should display equivalent
grade according to following table.
Marks Grade
100-80 Dist
60-79 First Class
35-59 Second Class
0-34 Fail
4. Write a program to read marks of a student from keyboard whether the student id pass (if).
5. Write a program to find the sum of first N odd numbers.
6. Write a program using while loop construct which finds the factorial of a given integer number.
7. Write a C program using do…while and for loop constructs to reverse the digits of the number.
8. Write a program to demonstrate use of Switch- Break Statement.
9. Write a program to find out all the numbers divisible by 5 and 7 between 1 to 100.
Check for Armstrong number. A number is Armstrong if sum of cube of every digit is
same as the original number. E.g. 153=13+53+33=153
10. Write a program to print the output of bellow series. 1!+2!+3!+4!+… ..... n!
11. Write a program to print the following outputs using for Loop.
(a) 1 (b) *
12 **
123 ***
12. Write a program to print the following outputs using for Loop.
(a) 1 (b) 321
21 21
321 1
Player name
Team name
Batting average