Académique Documents
Professionnel Documents
Culture Documents
LAB CYCLE – I
1. Read two number and perform all arithmetic operation.
2. Input any alphabet and check whether it is vowel or consonant.
3. Write a C program to find the roots of a quadratic equation.
4. Write a C program to input electricity unit charge and calculate the total electricity bill
according to the given condition:
For first 50 units Rs. 0.50/unit
For next 100 units Rs. 0.75/unit
For next 100 units Rs. 1.20/unit
For unit above 250 Rs. 1.50/unit
An additional surcharge of 20% is added to the bill.
5. Program to print number of days in a month using switch.
6. Program to implement simple calculator using switch.
7. Program to print a number in words.
8. Program to add numbers until user enter zero using do. While.
9. Swap values in odd and even positions in an array.
10. Write a menu driven program to insert, delete and display element at a particular position in
an array.
11. Program to read a string and count
1. Number of words.
2. Number of vowels.
3. Number of consonants.
4. Number of punctuators.
26. Write a menu driven program to perform 1. Bubble sort 2. Selection sort 3. Linear search
and 4. Binary search in an array.
27. Read n number in to a file then store the odd number in to one file and even number in to
another file.
28. Concatenate the content of two text file in to a single file.