Record Lab Programs - 2022-23
Record Lab Programs - 2022-23
COMPUTER SCIENCE
CLASS 11
TERM-1 SESSION 2022-23
ROLL NO:
ACKNOWLEDGEMENT
[Shazia sadikhali]
2
CERTIFICATE
3
CONTENTS
Write a program to input the value of x and n and print the sum of the
4
series:
x/1!+x2/2!+x3/3!+……+xn/n!
Grade Criteria
A Above 80%
B 70% to 80%
C 50% to 70%
D 40% to 50%
F Below 40%
Write a program to enter the price and quantity of an item purchased
6
by the customer and to compute and print the total amount ,discount
amount and net amount to be paid by the customer. The following is
the criteria for giving discounts on the items purchased.
4
• If total amount is upto 25000 then the discount of 5%
given
• If the total amount is between 25000 and 50000 then a
discount of 10% is given
• If the total amount payable is above 50000 then the
discount is 20%.
An electricity board charges according to the following rules
7
For first 100 units-Rs.2 per unit
For next 200 units –Rs.3 per unit
Beyond 300 units – Rs.4 per unit
All users will have to pay a meter charge of Rs.50. Write a
Python program to input the number of units consumed and
print the charges.
The program should accept the no of days and the category code and
compute and display the total amount, tax and net amount.
5
Write a menu driven program to determine
9
a. whether a number is a perfect number,
b. whether a number is an Armstrong number
Pattern -1
**
***
****
*****
Pattern - 2
12345
1234
123
12
6
Write a program to display the terms of a Fibonacci series.
13
Write a program to display the words starting with “a” (both cases)
20 from a sentence.
7
Program 1:
Source code:
o/p:
8
Program 2:
Source code:
o/p:
9
Program 3:
Source code:
o/p:
10
Program 4:
Source code:
o/p:
11
Program 5:
O/P:
12
PROGRAM 6:
o/p:
13
Program 7:
Output:
14
Program 8:
o/p:
15
Program 9:
(a):
o/p:
16
(b):
o/p:
17
Program 10:
O/P:
18
Program 11:
o/p:
19
Program 12:
o/p:
20
Program 13:
o/p:
21
Program 14:
o/p:
22
Program 15:
o/p:
23
Program 16:
o/p:
24
Program 17:
o/p:
25
Program 18:
o/p:
26
Program 19:
o/p:
27
Program 20:
o/p:
28