The Bhawanipur Education Society College
Department of Computer Science
Problem Solving Using C Programming (DSCC-2)
Assignments List
BASIC PROGRAMS:
1. WAP in C to compute A+B*C+D/E.
2. WAP in C to swap two numbers
(a) Without using a third variable
(b) Using a third variable
3. WAP in C to compute Simple Interest.
4. WAP in C to convert temperature given in Celsius to Fahrenheit scale or vice-versa as
per user input.
5. A salesperson earns a commission of ₹200 per sale. If the total number of sales is 10 or
more, they receive an additional incentive of ₹500.Write a C program to calculate and
display the total earnings of the salesperson based on these conditions.
6. Salary Bonus Calculator: A company gives a bonus based on experience: If the
employee has worked for 5 or more years, they get a 10% bonus on salary. Otherwise,
they get no bonus.
7. WAP to select students for Educational Tour. Conditions: Attendance must be at least
75% and SGPA in the previous Sem should be 7.5 and above.
8. WAP to provide 5% discount to the senior citizens. Conditions: Age is >=60 and billing
amount at least 5000.
9. WAP to check if a given year is a leap year. Conditions
(a) It is divisible by 4 and not divisible by 100 OR
(b) It is divisible by 400
10. WAP in C to find out the roots of a quadratic equation and keep provision for
imaginary roots.
11. WAP in C to check whether a given number is odd or even.
12. WAP to take three side lengths of a triangle as input and print whether the triangle is
Equilateral, Isosceles, or Scalene.