XI CS Practical File 2021-22

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

LALA KAILASHPAT SINGHANIA

PUBLIC SCHOOL
(ISO 9001:2015)

Session-2021-22

Computer Science Practical File


(Subject Code-083)
ALL INDIA SENIOR SCHOOL CERTIFICATE EXAMINATION

Guided By:- Prepared By:-


Mr.D.S. Sankhla Ma./Ms Sahil Jethwani
(HOD - Computer Science ) Class:- XI-C
Roll No. 11329
CERTIFICATE

Certified that this isthe bonafide work of Sahil Jethwani ofXI-C of


LK Singhania Public School. He perform these experiments during
the academic year 2021-22. Number of practical certified 35in
Computer Science.

 The Student’s initiative cooperation and participation during


the practical was Excellent / Good / Average/ Below Average.
 His / Her aesthetic presentation, visual appeal, expression and
neatness is Excellent / Good / Average / Below Average.
 His / Her content accuracy, creativity, originality and analysis
of different perception is Excellent / Good / Average / Below
Average

Examiner’s Principal’s Teacher’s


Signature Signature Signature
SUB:- COMPUTER SCIENCE WITH PYTHON CODE :- 083

INDEX

S.N. EXPERIMENT SIGN.


1 Write a python program to input a welcome message and display it.

2 Write a python program that convert degree centigrade temperature into degree farenhight.

3 Write a python program for calculating simple interest.

4 WAP to accept percentage of a student anddisplay its grade accordingly.

5 Write a python program to input three numbers and display the largest / smallest number.

6 Write a python program to input two numbers and display the larger / smaller number.

7 Write a python program that demonstrate number guessing game using if-elif-else statement

8 Program to print the table of any n natural number

9 Program to print the number in reverse order

10 Program to print the sum of n natural numbers

11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

Program 1
Write a python program to input a welcome message and display it.
Message=input("enter your message:") 
Print("hello, ",message)

Program 02
Write a python program that convert degree centigrade temperature into degree farenhight.
Celsius = Float (input (" enter temperature in celcius: "))
Fahr - (Celsius * 9/5) + 32
Print = (" Temperature in Fahrenheit is:", fahr) "
Output:
=> Enter temperature: 30.0
=>30.0x 9/5+ 32
=> Temperature in Fahrenheit 86.0° Fahrenheit

Program – 3
Write a python program for calculating simple interest.
Principal = Float (input("Enter principal amount :”))
Rate = Floạt (input (“enter Rate :"))
Time = Float (imput (" Enter number of years: ")) 
simple interest = ( principal * rate + time ) / 100
paint ("simple interest is :”,simple interest) 
Principal amount : 1000 
Rate: 10%
Time: 1 year
simple interest = 1000 x 10 x 1/100
simple interest is: 100.0 

Program- 4
WAP to accept percentage of a student anddisplay its grade accordingly.
Percentage => Float (input ("enter percentage "))

if percentage = 90:
Grade = "A”
 elif percentage = 80 And percentage <90: 
 Grade =”B”
elif percentage >= 10 and percentage <80:
Grade =”C”
elif percentages >=60 and percentage <70
Grade =”D”
Else:
Grade =”E”
Print = (“the Grade is:”,Grade)
Output:
Percentage = 85.0
The grade is : B
  

 Program5
Write a python program to input three numbers and display the largest / smallest number.
num1=11
num2=14
num3=10
if (num1 >= num2) and (num1 >= num3): largest num1
elif(num2 >= um3) and (num2 >= num3): else:
largest num3
print("The largest number is ", largest)
    

Program 6
Write a python program to input two numbers and display the larger / smaller number.
Int a=5,b=6;

if(a>b)
Printf(“%d is greater”,a):
Else
Print f(“%d is greater”,b):

Program 7
Write a python program that demonstrate number guessing game using if-elif-else statement
print("Nuber Guessing Game \n") ch1=int(input('Enter any number from the
list 4/5/6'))
if ch1==5:
print("Congratulations I round cleared") ch2=input('Enter any character from the list M/N/O')
if ch2=='M':
print("Congratulations II round cleared") ch3=input('Enter any symbol from
the list #/$/@')
if ch3=='$':
print("Congratulations You are Winner")
else:
print("Runner up")
else:
print("Hard work Better luck next time")
else: print("Looser")

Program 8
Program to print the table of any n natural number
number = int(input("Please Enter any Number: "))
("The print("The List of Natural Numbers from 1 to {0} are".format(number))
for i in range(1, number + 1):
print (i, end = '1')
     

Program 9
Program to print the number in reverse order.
number = int(input("Please Enter any Number: "))
("The print("The List of Natural Numbers from 1 to {0} are".format(number))
for i in range(1, number + 1):
print (i, end = '1')
 

Program 10
Program to print the sum of n natural number.
n=input("Enter any number") + 1):
sum = 0 for i in range(i, n+1):
sum = sum +i 
print="sum"

You might also like