XI F2 Term 1 Record Programs
XI F2 Term 1 Record Programs
2.Write a program to accept the consumer name, EB number, number of units and type of
Consumption [D - Domestic, C- conmmercial] Calculate the amount to be paid based on the
following criteria
For Domestic purpose
a. for the first 100 units - No charges
b. for units 101-200, Rs.7 per unit
c. for units 201-300, Rs. 9.50 per unit
d. for units 301 and above Rs. 12 per unit.
For Commercial purpose
a. for the first 100, Rs. 10 per unit
b. for units 101-200,Rs. 25 per unit
c. for units 201-300, Rs. 40 per unit
d. for units 301 and above Rs. 55 per unit.
Print the EB bill in the given format
ELECTRICITY BILL
CONSUMER NAME
EB NUMBER
TYPE OF CONSUMPTION
NUMBER OF UNITS
TOTAL AMOUNT
3. Write a menu driven program to find the area of circle, rectangle, square and triangle.
4. Write a program to find the roots of quadraticequation.
5. Accept a choice and find the sum of the following series.
1. X-X2/2! +X3/3! -....+X N/N!
2. 1+(1+2)+(1+2+3)+(1+2+3+4)+. .+(1+2+..tN)
6. Write a program to accept a number and print its square and cube until the user type zero using
while loop.
7. Write a program to print the following output
a) 1 b) JIH G
2 3 FED
4 5 6 CB
7 8 9 10 A
8. Write a program to accept a number ana reverse the number. Print the reversed number and Drint
the count of odd digits ard even digiis Sf he number using
while loop.
STD X- SQL- LAB ENERCISE (2024-2)
10.07.24
MENUDRIVEN PROGRAM TO FIND AREA OF THE
SHAPES
16.07.24
|PRINT THE SUM OF THE SERIES BY ACCEPTING
THE CHOICE