Vous êtes sur la page 1sur 2

COLLEGE OF ENGINEERING PERUMON

DEPARTMENT OF COMPUTER SCIENCE AND INFORMATION TECHNOLOGY


SECOND SEMESRER COMPUTER SCIENCE AND ENGINEERING
CS110 COMPUTER PROGRAMMING WORKSHOP
LAB CYCLE

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.

12. Program to read a string and check whether it is palindrome or not.


13. Write a menu driven program to perform the following matrix operations.
1. Read 2. Addition 3. Subtraction 4. Multiplication 5. Display
14. Create a structure student having name, age, roll no, mark of 5 subject and total mark as
variable. Write a program to read the details of n student find the total mark and display it.
15. Write a menu driven program to add, subtract and multiply two complex number using
structure.
LAB CYCLE –II

16. Program to swap two number using pointer.


17. Program to sort an array using pointer.
18. Program to copy the element of an array in to another using pointer.
19. Implement the function int reverse(int) which reverse the digits of a number use another
function void palin(int), which check whether the given number is palindrome or not.
20. Program to find the smallest element in an array using function.
21. Menu driven program to read, transpose and display a matrix using function.
22. Program to implement call by value and call by reference use the program swpping of two
numbers.
23. Program to implement pow(a, b) using recursion.
24. Print GCD of two number using recursion.
25. Program to find the sum of sine series using recursion.

LAB CYCLE – III

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.

Vous aimerez peut-être aussi