Programming for Problem Solving (ES-CS291)
2022
ROLL
NAME
Learning outcome: Students will be able to To translate given
algorithms to a working and correct program
ASSIGNMENT: I
Sl. Problem Listing Date Signature
No
1. Write a C program to convert temperature from degree
Celsius to degree Fahrenheit.
2. Write a program in C to check whether a given year is
leap year or not.
3. Write a program in C to calculate the roots of a quadratic
equation ax2 + bx + c = 0.
4. Write a program in C to find out the maximum of three
numbers.
5. Write a program in C to find out the area and the
circumference of a circle where the radius is given.
6. Write a program in C to compute simple interest and
compound interest.
7. An electric power distribution company charges its
domestic consumers as follows:
Consumption Units Rate of Charge
0 - 200 ₹ 0.50 per unit
201 - 400 ₹ 100 plus ₹ 0.65 per unit
excess of 200
401 - 600 ₹ 230 plus ₹0.80 per unit
excess of 400
601 and above ₹ 390 plus ₹1.00 per unit
excess of 600
Write a program in C to read the customer number and
power consumed and prints the amount to be paid by the
customer.
SIGNATURE OF STUDENT........................................................
SIGNATURE OF FACULTY........................................................