C - Programming LAB
C - Programming LAB
Course Objectives:
1. Apply the specification of syntax rules for numerical constants and variables, data
types,
2. Usage of Arithmetic operator, Conditional operator, logical operator and relational
operators and other C constructs.
3. Write C programs using decision making, branching, looping constructs
4. Apply and Write C programs to implement one dimensional and two dimensional
arrays
5. Writing programs using functions
Course Outcome:
Apprx.
Exer
Hrs.
cise Practical/Exercise
Required
No.
C PROGRAMMING
1 Introduction to C programming (Lecture and demo).And 04+05
Write C programme to convert the temperature in degree Celsius to
degree Fahrenheit.
2 To find the sum and average of 3 real numbers. 01+02
3 To find the sum of even and odd numbers from 1 to N. 01+02
4 To find the sum of digits of a number. 01+02
5 To reverse the given integer and check whether it is a palindrome or not 02+04
6 To find the roots of a quadratic equation using switch statement. 03+06
7 To arrange N numbers in ascending order using Bubble sort technique 03+06
8 To perform addition of two matrices. 03+06
9 To perform a multiplication of two matrices after checking the 03+06
compatibility for multiplication.
10 To find the largest of 3 numbers using functions (functions with 03+06
arguments and return value)
11 To find the distance travelled by a vehicle, given it’s initial velocity ‘u’, 01+02
acceleration ‘a’ and time ‘t’ [ S = ut + 1/2at2]
12 To find out Clearance volume of an Engine, given its bore diameter, 01+02
Length of stroke and Compression ratio
13 To find the power transmitted by shaft by inputting the value speed and 01+02
torque transmitted
TOTAL 78Hrs
Note: For the above exercises, first the flowchart should be developed and then the programs
should be written and executed.
Directorate Of Technical Education Karnataka State 15ME47P MECH
Concepts in C- Balaguruswamy
1 Ask the students to take the simple problems in Hydraulics , develop a C Programme
2 Ask the students to take the simple problems in Strength of Materials , develop a C
Programme
3 Ask the students to take the simple problems in Thermal engineering, develop a C
Programme
Course Delivery:
The course will be delivered through lectures and presentations
Activities
Record – 15 Graded 1,2
Average marks exercises
of graded
exercises to be
computed
Direct
meth
of Delivery of
Indirect
instructions &
Assessment
Methods
Note to IA verifier: The following documents to be verified by CIE verifier at the end of
semester
1. Student suggested activities report for 10 marks
2. Student feedback on course regarding Effectiveness of Delivery of instructions &
Assessment Methods.
1 Writing Programme 20
2 Execution 20
4 Viva 10
TOTAL 50
Execution 20
Viva 10
TOTAL 50