Professional Documents
Culture Documents
Practical File Artificial Intelligence Class 10 For 2023-24
Practical File Artificial Intelligence Class 10 For 2023-24
1
BOLANGIR (O.F.)
Roll No. :
Name :
Class :
Subject :
SubjectCode :
SUPERVISED BY:
Mr. Amit Yerpude
PGT (CS)
ACKNOWLEDGEMENT
I wish to express my deep sense of
gratitude and indebtedness to our learned teacher Mr. Amit
Yerpude, PGT (Computer Science) for his invaluable help,
advice and guidance in the preparation of this project. I am
also greatly indebted to our Principal Mr. Rohit Choudhary
and school authorities for providing me with the facilities
and requisite laboratory conditions for making this practical
file. I also extend my thanks to all the teachers, my
classmates and friends who helped me to complete this
practical file successfully.
[Name of Student]
CERTIFICATE
This is to certify that [Name of Student], student of Class X,
Kendriya Vidyalaya No.1 Bolangir has completed the
PRACTICAL FILE during the academic year 2023-24
towards partial fulfillment 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 Date:
Principal
Signature
Index
No Practical Date Signature
3 Write a program to find the maximum number out of the given three numbers.
Write a program that reads the customer number & power consumed and prints
the amount to be paid by the customer. Note that output should be well
formatted.
9 Write a program to create a list of numbers and swap the content with the next
value divisible by 5.
For example: list = [4,25,31,7,35,44,55]
Output: [25,4,31,35,7,55,44]
14 Write a program to create a data frame to store data of candidates who appeared
in interviews. The dataframe columns are name, score, attempts, and qualify
(Yes/No). Assign rowindex as C001,C002, and so on.
15 Write a program to create a dataframe named player and store their data in the
columns like team, no. of matches runs, and average. Assign player name as row
index and Display only those player details whose score is more than 1000.
16 Write a program to represent the data on the ratings of mobile games on a bar
chart. The sample data is given as:
Games:Pubg, FreeFire, MineCraft, GTA-V, Callofduty, FIFA 22. Rating:
4.5,4.8,4.7,4.6,4.1,4.3.
17 Write a program to calculate variance and standard deviation for the given data:
[33,44,55,67,54,22,33,44,56,78,21,31,43,90,21,33,44,55,87]
18 Write a menu-driven program to calculate the mean, mode and median for the
given data: [5,6,1,3,4,5,6,2,7,8,6,5,4,6,5,1,2,3,4]
19 Consider the following data of a clothes store and plot the data on the line chart
and customize the chart as you wish:
20 Observe the given data for monthly sales of one of the salesmen for 6 months.
Plot them on the line chart.
Write a program that reads the customer number & power consumed and prints the
amount to be paid by the customer. Note that output should be well formatted.
#Input Data
cno=int(input("Enter Cusumer Number:"))
pc=int(input("Enter power consumed:"))
#Computing bill amount based on power consumed
if pc>0 and pc<=100:
bill_amt=pc*1
elif pc>100 and pc<=300:
bill_amt=100+(pc-100)*1.25
elif pc>300 and pc<500:
bill_amt=350+(pc-300)*1.50
elif pc>500:
bill_amt=650+(pc-500)*1.75
else:
print("Invalid Power Consumed Units")
#Printing the bill in proper format
print("~"*60)
print("\t\tABC Power Company Ltd.")
print("~"*60)
print("Consumer Number:",cno)
print("Consumed Units:",pc)
print("------------------------------")
print("Bill Amount:",bill_amt)
5. Write a program to check whether the entered number is Armstrong or not.
#Import pyplot
import matplotlib.pyplot as pp
#Prepraing data
mon =['January','February','March','April','May','June']
sales = [2500,2100,1700,3500,3000,3800]
#Crating line chart
pp.plot(mon,sales,label='Sales',color='r',linestyle='dashed',
linewidth=4,\ marker='o', markerfacecolor='k', markeredgecolor='b')
#Customizing the chart
pp.title("Sales Report")
pp.xlabel("Months")
pp.ylabel("Sales")
pp.legend()
pp.show()
19. Write a menu-driven program to calculate the mean, mode and median for the given
data: [5,6,1,3,4,5,6,2,7,8,6,5,4,6,5,1,2,3,4]
#import statistics
import statistics
#Creating list
l=[5,6,1,3,4,5,6,2,7,8,6,5,4,6,5,1,2,3,4]
#Display mean, mode and median value using functions
print("Mean Value:%.2f"%statistics.mean(l))
print("Mode Value:%.2f"%statistics.mode(l))
print("Median Value:%.2f"%statistics.median(l))
20. Write a program to calculate variance and standard deviation for the given data:
[33,44,55,67,54,22,33,44,56,78,21,31,43,90,21,33,44,55,87]
#import statistics
import statistics
#Creating list
l=[33,44,55,67,54,22,33,44,56,78,21,31,43,90,21,33,44,55,87]
#Display varaince and standard deviation value using
functions print("Variance:%.2f"%statistics.variance(l))
print("Standard Deviation:%.2f"%statistics.stdev(l))
Unit 5 Computer Vision
Solution:
1. White
2. Yellow
3. Pink
4. Cyan
5. Black
6. Blue
7. Red
8. Green
9. R=0,G=0,B=255