0% found this document useful (0 votes)
392 views22 pages

Class IX Practical File

The document appears to be a practical record file submitted by a student named Anjali Meena for an Artificial Intelligence class. It contains the student's name, the name of the school (PM SHRI Kendriya Vidyalaya No. 2 GCF Jabalpur), the teacher's name, and the class and roll number of the student. It also includes an acknowledgement, certificate, and index of assignments completed by the student as part of the practical evaluation.

Uploaded by

meenadeepika025
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
392 views22 pages

Class IX Practical File

The document appears to be a practical record file submitted by a student named Anjali Meena for an Artificial Intelligence class. It contains the student's name, the name of the school (PM SHRI Kendriya Vidyalaya No. 2 GCF Jabalpur), the teacher's name, and the class and roll number of the student. It also includes an acknowledgement, certificate, and index of assignments completed by the student as part of the practical evaluation.

Uploaded by

meenadeepika025
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 22

PM SHRI

KENDRIYA
VIDYALAYA NO.2 GCF
JABALPUR

A PRACTICAL RECORD FILE IS


SUBMITTED FOR THE
ARTIFICIAL INTELLIGENCE
CLASS IX
SESSION 2023-24

SUBMITTED BY: ANJALI MEENA


SUBMITTED TO
AKSHAY KUMAR JAIN

SUBJECT TEACHER(AI)

CLASS : IXth A

ROLL NO: 10
ACKNOWLEDGEMENT

I wish to express my deep sense of


gratitude and indebtedness to our learned teacher
Mr. Akshay Kumar Jain , Computer
Instructor ,PM SHRI Kendriya Vidyalaya No. 2 GCF
Jabalpur, for his invaluable help, advice and
guidance in the preparation of this project
I am also greatly indebted to our
principal Mrs. Ashima Goyal, and school
authorities for providing me with the facilities
and requisite laboratory conditions for making
this practical file.
I also extend my thanks to a number
of teachers ,my classmates and friends who
helped me to complete this practical file
successfully.

[Name of Student]
CERTIFICATE

This is to certify that ANJALI MEENA, student of


Class IX, PM SHRI Kendriya Vidyalaya No. 2 GCF
Jabalpur, has completed the PRACTICAL FILE during
the academic year 2023-24 towards partial
fulfilment of credit for the ARTIFICIAL INTELLIGENCE
practical evaluation of 2023-24 and submitted
satisfactory report, as compiled in the following
pages, under my supervision.

Internal Examiner Signature


Index
Sr.No. Assignment Page No.

1 Print 5 lines about yourself using print() function.

2 Write a programme to calculate simple interest by given user input


principal, rate, time.
3 Find out the bigger value from user given input three value.
Demonstrate the use of floor division (//) and modular operator (%)
4
in python
Lock or unlock your phone using pin or password and generate
5 appropriate message
6 Check whether the entered number is odd or even.
A tours and travels company charges their customer as per following
7
criteria according to customer category.
Write a program to implement an increment to the employees based
8
on their appraisal score.
9 Write a program to reverse entered number using for loop.

10 Write a program to calculate electricity bill given input value as unit.


If bill below 100 unit fixed bill 100, and 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.
11 Write a program to check entered number is Prime or not.

12 Write a program to print a multiplication table of entered number

13 Write a program to find sum of first N Natural numbers.

14 Write a program to find average of first N numbers


Write a program to find average of odd numbers from the selected
15
range of n numbers
Q.1 Print 5 lines about yourself using input () and print() function.

Name = input (“Please Enter Your Name”)

Class = input (“Please Enter Your Class”)

Age = input (“Please Enter Your Age”)

Mob= input (“Please En-ter Your Contact No.”)

Address= input (“Please Enter Your Address”)

print (“Your Name is = ”, Name)

print (“Your Class is = ”, Class)

print (“Your Age is = ”, Age)

print (“Your Contact No. is = ”, Mob)

print (“Your Address is = ”, Address)

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.. .

P=int(input(“Please Enter the Principal Amount”))

R=int(input(“Please Enter the Rate”))

T= int(input(“Please Enter the Time”))

SI= (P*R*T)/100

print (“Simple interest is = ”, SI)

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

A=int(input(“Please Enter the First Value”))

B= int(input(“Please Enter the Second Value”))

C= int(input(“Please Enter the Third Value”))

if (A>B and A>C):

print(“A is Bigger Number”, A)

elif (B>C and B>A):

print(“B is Bigger Number”,B)

else :

print(“Cis Bigger Number”,C)

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.

A=int(input(“Please Enter the First Value”))

B= int(input(“Please Enter the Second Value”))

C= A%B

D=A//B

print(“Modular Value is =”,C)

print(“Floor Division Value is =”,D)

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

print (“Create your phone password”)

Gen = input(“Enter your new Password here”)

print (“password generate successfully ”)

Pwd=input(“Please Enter Your Password”)

if (Gen==Pwd):

print (“You login successfully ”)

else :

print (“You enter wrong password ”)

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.

print (“Check your todays weather”)

Weather=input(“Please Enter Your Weather”)

if (Weather%2==0):

print (“Todays weather is Even”)

else :

print (“Todays weather is Odd”)

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.

print (“Welcome to Ankit tours and travels ”)

print (“we are providing four tours plan”)

print (“1 Udaipur, 2 Kashmir, 3 Goa, 4 Kerala”)

travel=int(input(“Please select your Journey in 1 to 4 ”))

person=int(input(“how many person travel”))

if (person<=2):

if (travel==1):

print (“per person charges 1500 for Udaipur”)

elif (travel==2):

print (“per person charges 2000 for Kashmir ”)

elif (travel==3):

print (“per person charges 2500 ” for Goa)

elif (travel==4):

print (“per person charges 3000 ” for Kerala)

else:

print (“We have no plan for other destination “)

else :

if (travel==1):

print (“per person charges 1250 for Udaipur”)

elif (travel==2):
print (“per person charges 1750 for Kashmir ”)

elif (travel==3):

print (“per person charges 2200 ” for Goa)

elif (travel==4):

print (“per person charges 2500 ” for Kerala)

else:

print (“We have no plan for other destination “)

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.

print (“Please enter the Employee details”)

name = input (“Enter Employee Name”)

Des= input (“Enter Designation ”)

Sal= int(input(“Enter Salary”))

Apr=int(input(“Enter Appraisal Score”))

if (arp<=100):

print (“no increment for this year”)

elif (100<arp=<200):

print (“5% increment for this year”)

Sal=Sal*1.05

print (“Current Salary is ”, Sal)

elif (200<arp=<300):

print (“10% increment for this year”)

Sal=Sal*1.10

print (“Current Salary is ”, Sal)

elif (300<arp=<500):

print (“20% increment for this year”)

Sal=Sal*1.20

print (“Current Salary is ”, Sal)


elif (500<arp=<700):

print (“25% increment for this year”)

Sal=Sal*1.25

print (“Current Salary is ”, Sal)

elif (700<arp=<850):

print (“30% increment for this year”)

Sal=Sal*1.30

print (“Current Salary is ”, Sal)

elif (850<arp=<1000):

print (“40% increment for this year”)

Sal=Sal*1.40

print (“Current Salary is ”, Sal)

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.

I=int (input ("Please Enter the Number"))

for p in range (I,0,-1):

print ("Revers num

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.

Bill= int(input(“Please Enter your Electricity consumption in unit”))

if (Bill<=100):

print (“Your bill is Rs. 100 Only”)

elif (100<bill<=200):

Bill = Bill*5

print (“Your bill is =”, Bill)

elif (200<bill<=300):
Output :
Bill = Bill*6

print (“Your bill is =”, Bill)

else:

Bill = Bill*8

print (“Your bill is =”, Bill)


Q.11 Write a program to check entered number is Prime or not..

num=int(input(“Please Enter the Number”)

if num > 1:

for i in range(2, int(num/2)+1):

if (num % i) == 0:

print(num, "is not a prime number")

break

else:

print(num, "is a prime number")

else:

print(num, "is not a prime number")

Output :
Q. 12 Write a program to print a multiplication table of entered number.

I=int (input ("Please Enter the Number"))

for p in range (1,11):

t=I*p

print (I,"X", p, "=",t)

Output :
Q.13 Write a program to find sum of first N Natural numbers.

N=int (input ("Please Enter the Number"))

Sum=0

for p in range (1,(N+1)):

Sum=Sum+p

Output :

print ("Sum =",Sum)


Q.14 Write a program to find average of first N numbers

N=int (input ("Please Enter the Number"))

Sum=0

for p in range (1,(N+1)):

Sum=Sum+p

AVG=SUM/N

print ("average of first N numbers is ",AVG)

Output :
Q.15 Write a program to find average of odd numbers from the selected
range of n numbers.

N=int (input ("Please Enter the Number"))


Sum=0
count=0
for p in range (1,(N+1)):
if (p%2==0):
continue
else :
Sum=Sum+p
count=count+1
print(" ", p)
AVG=Sum/count
print ("average of odd numbers is ",AVG)

Output :

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy