Class IX Practical File
Class IX Practical File
KENDRIYA
VIDYALAYA NO.2 GCF
JABALPUR
SUBJECT TEACHER(AI)
CLASS : IXth A
ROLL NO: 10
ACKNOWLEDGEMENT
[Name of Student]
CERTIFICATE
Output :
Your Name is = ANJALI MEENA
Your Class is = 9TH A
Your Age is = 14
Your Contact No. is= 70241425339
Your Address is = RAILWAY COLONY SOUTH CIVIL LINE
NEAR BY SHAKTI DHAM JBP
Q.2 Write a programme to calculate simple interest by given user input
principal, rate and time.. .
SI= (P*R*T)/100
Output :
Please Enter the Principal Amount= 1000
Please Enter the Rate= 10
Please Enter the Time=5
Simple interest is = 500.0
Q.3 Find out the bigger value from user given input three value
else :
Output :
Please Enter the First Value=5
Please Enter the Second Value=3
Please Enter the Third Value=2
A is Bigger Number = 5
Q.4 Demonstrate the use of floor division (//) and modular operator (%)
in python.
C= A%B
D=A//B
Output :
Please Enter the First Value: 10
Please Enter the Second Value:20
Modular Value is =10
Floor Division Value is = 0
Q5. Lock or unlock your phone using pin or password and generate
appropriate message
if (Gen==Pwd):
else :
Output :
Create your phone password
Enter your new Password here: anjali1303
Password generated successfully
Please Enter Your Password: anjali
You entered the wrong password
Or
Create your phone password
Enter your new Password here: anjali1303
Password generated successfully
Please Enter Your Password: anjali1303
You logged in successfully
Q.6 Check whether the entered number is odd or even.
if (Weather%2==0):
else :
Output :
Check today's weather
Please Enter Your Weather: 23
Today's weather is Odd
Q. 7 A tours and travels company charges their customer as per
following criteria according to customer category.
if (person<=2):
if (travel==1):
elif (travel==2):
elif (travel==3):
elif (travel==4):
else:
else :
if (travel==1):
elif (travel==2):
print (“per person charges 1750 for Kashmir ”)
elif (travel==3):
elif (travel==4):
else:
Output :
Welcome to Ankit tours and travels
We are providing four tour plans:
1 Udaipur, 2 Kashmir, 3 Goa, 4 Kerala
Please select your journey (1 to 4): 2
How many persons will travel: 6
Per person charges 1750 for Kashmir
Q8. Write a program to implement an increment to the employees based
on their appraisal score.
if (arp<=100):
elif (100<arp=<200):
Sal=Sal*1.05
elif (200<arp=<300):
Sal=Sal*1.10
elif (300<arp=<500):
Sal=Sal*1.20
Sal=Sal*1.25
elif (700<arp=<850):
Sal=Sal*1.30
elif (850<arp=<1000):
Sal=Sal*1.40
Output :
Please enter the Employee details
Enter Employee Name: VINAYAK YADAV
Enter Designation: MANAGER
Enter Salary: 200000
Enter Appraisal Score: 980
40% increment for this year
Current Salary is 280000.0
Q.9 Write a program to reverse entered number using for loop.
ber =", p)
print ("Finish")
Output :
Q.10 Write a program to calculate electricity bill given input value as unit. If
bill below 100 unit fixed bill Rs.100, and if bill 100 to 200 unit than bill
charges Rs. 5 per unit , if bill 200 to 300 unit than bill charges Rs. 6 per
unit and if bill above 300 unit than bill charges Rs. 8 per unit.
if (Bill<=100):
elif (100<bill<=200):
Bill = Bill*5
elif (200<bill<=300):
Output :
Bill = Bill*6
else:
Bill = Bill*8
if num > 1:
if (num % i) == 0:
break
else:
else:
Output :
Q. 12 Write a program to print a multiplication table of entered number.
t=I*p
Output :
Q.13 Write a program to find sum of first N Natural numbers.
Sum=0
Sum=Sum+p
Output :
Sum=0
Sum=Sum+p
AVG=SUM/N
Output :
Q.15 Write a program to find average of odd numbers from the selected
range of n numbers.
Output :