Академический Документы
Профессиональный Документы
Культура Документы
Topic
Lab
Number
Experiment Name
Write a program to find simple interest when principle
amount, rate of interest & no. of years are given.
3
Write a program to check whether a given year is a leap year.
Conditional
statements
Control
statements
Arrays
10
11
Strings
12
13
Functions
14
Structures
15
Practice Programs:
1) Write a C program to calculate the following sum of series with no of terms.
Sum=1 - x2/2! + x4/4! x6/6! + x8/8! x10/10!.......n terms
2) Write a C program to find all possible roots of a quadratic equation.
3) A company sells five different products with prices shown in the following table.
Product Number
Retail Price Unit(in Rs)
1
15.50
2
19.25
3
14.75
4
25.00
5
12.20
Write a program using switch-case construct that reads the product number and
number of units sold and display the amount to be paid.
4) Write a program to find the median of a given list of numbers.
5) Write a menu driven program to perform following operations in a given list
i. Insert an element in to the list at a given position.
ii. Delete an element from the list at a given position.
6) Write a program to print the following triangle
1
1
2
1
1
2
3
4
----------------------------up to n line.
7) Write a program to print all multiplication tables between two limts.
8) Write a program to perform binary search and linear search.
9) Write a program to convert each character of a string into the next character and
print the same.
10)Write a program to print the binary equivalent of a given number using recursion