Download as pdf or txt
Download as pdf or txt
You are on page 1of 31

CENTRAL BOARD OF SECONDARY EDUCATION

CREDENCE HIGH SCHOOL, DUBAI

PRACTICAL FILE

SUBJECT- ARTIFICIAL INTELLIGENCE

SUBMITTED BY GOURI RAJ

TEACHER’S NAME- THAMIZHMANI

CLASS - X

SUBJECT CODE - 417

Subject Teacher’s Signature

1
ACKNOWLEDGEMENT
I wish to express my deep sense of
gratitude and indebtedness to our learned teacher
Mrs.Thamizhmani Nagarajan ,Head of the AI Dept,
[Credence High School],for her invaluable help,
advice and guidance in the preparation of this project.

I am also greatly indebted to our principal


[Mrs.Deepika Thapar Singh] 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.

[Gouri Raj]

2
CERTIFICATE

This is to certify that Gouri Raj , student of Class-X, Credence High School,
Dubai has completed the PYTHON Practical File during the academic session
2022-2023 towards partial fulfillment of credit for the ARTIFICIAL
INTELLIGENCE practical evaluation of CBSE and submitted satisfactory report,
as compiled in the following pages, under my supervision.

Total number of programs certified are: -- 16

External Examiner Internal Examiner


Signature Signature

3
TABLE OF CONTENTS
NO. PROGRAM NAME PAGE
NO

1 Write a program to compute the net run rate for a tournament. 6


2 Write a program to check whether the given character is an 7
uppercase letter or lowercase letter or a digit or a special
character.

3 Write a program to find the maximum number out of the given 8


three numbers.

4 Write a program that reads the customer number & power 9


consumed and prints the amount to be paid by the customer.

5 Write a program to check whether the entered number is 10


Armstrong or not.

6 Write a program to print a multiplication table of the entered 11


number.

7 Write a program to generate a given pattern 12


8 Write a program to create a list of students' marks with user- 13
defined values and find the maximum.

9 Write a program to create a list of numbers and swap the 14


content with the next value divisible by 5.

10 Write a program to count the frequency of every element in a 15


given list.

11 Write a program to create a 2D array using NumPy. 16


12 Write a program to convert a python list to a NumPy array. 17
13 Write a program to create matrix of 3x3 from 11 to 30. 18
14 Write a program to create a data frame to store data of 19

4
candidates
who appeared in interviews.

15 Write a program to create a dataframe named player and store 20


their data in the columns like team, no. of matches runs, and
average.

16 Write a program to represent the data on the ratings of mobile 21


games on bar chart.

17 Write a program to calculate variance and standard deviation 22


for
the given data:

18 Write a menu-driven program to calculate the mean, mode and 23


median

19 Consider the following data of a clothes store and plot the data 24
on the line chart and customize the chart as you wish:

20 Observe the given data for monthly sales of one of the 25


salesmen for 6 months. Plot them on the line chart.

21 On the basis of RGB online tool, try and write answers of all 26-
the mentioned questions.
29

22 Create your own pixels on piskelapp and make a gif image. 30


23 Do the given tasks in OpenCV. 31

5
1.Write a program to compute the net run rate for a tournament

CODE:

OUTPUT :

6
2.Write a program to check whether the given character is an
uppercase letter or lowercase letter or a digit or a special
character.

CODE:

OUTPUT:

7
3.Write a program to find the maximum number out of the given three
numbers.

CODE:

OUTPUT:

8
4.Write a program that reads the customer number & power
consumed and prints the amount to be paid by the customer.

CODE:

OUTPUT:

9
5.Write a program to check whether the entered number is Armstrong or
not.

CODE:

OUTPUT:

10
6.Write a program to print a multiplication table of the entered number.

CODE:

OUTPUT:

11
7.Write a program to generate a given pattern:

CODE:

OUTPUT:

12
8.Write a program to create a list of students' marks with user-defined
values and find the maximum.

CODE:

OUTPUT:

13
9.Write a program to create a list of numbers and swap the content with
the next value divisible by 5.

CODE:

OUTPUT:

14
10.Write a program to count the frequency of every element in a given list.

CODE:

OUTPUT:

15
11.Write a program to create a 2D array using NumPy.

CODE:

OUTPUT:

16
12.Write a program to convert a python list to a NumPy array.

CODE:

OUTPUT:

17
13.Write a program to develop a matrix of 3x3 with values from 11 t0 28.

CODE:

OUTPUT:

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

CODE:

OUTPUT:

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

CODE:

OUTPUT:

20
16.Write a program to represent the data on the ratings of mobile games
on bar chart. The sample data is given as: Pubg, FreeFire, MineCraft,
GTA-V, Call of duty, FIFA 22. The rating for each game is as:
4.5,4.8,4.7,4.6,4.1,4.3.

CODE:

OUTPUT:

21
17.Consider the following data of a clothes store and plot the data on the
line chart:
Month Jeans T-Shirts Shirts

March 1500 4400 6500


April 3500 4500 5000
May 6500 5500 5800
June 6700 6000 6300
July 6000 5600 6200
August 6800 6300 4500

Customize the chart as you wish.

CODE:

OUTPUT:

22
18. Observe the given data for monthly sales of one of the salesmen for 6
months. Plot them on the line chart.

CODE:

OUTPUT:

23
19.Write a menu-driven program to calculate the mean, mode and median
for the given data:

CODE:

OUTPUT:

24
20. Write a program to calculate variance and standard deviation for the
given data:

CODE:

OUTPUT:

25
COMPUTER VISION

1.Visit this link (https://www.w3schools.com/colors/colors_rgb.asp). On


the basis of this online tool, try and write answers of all the
below-mentioned questions.

1. What is the output colour when you put R=G=B=255?


2. What is the output colour when you put R=G=255,B=0?
3. What is the output colour when you put R=255,G=0,B=255?
4. What is the output colour when you put R=0,G=255,B=255?
5. What is the output colour when you put R=G=B=0?
6. What is the output colour when you Put R=0,G=0,B=255?
7. What is the output colour when you Put R=255,G=0,B=0?
8. What is the output colour when you put R=0,G=255,B=0?
9. What is the value of your colour?

1. White:

2.Yellow:

26
3.Pink:

4.Cyan:

5.Black:

27
6.Blue:

7.Red:

28
8.Green:

9. R=255,G=255,B=0

29
22.Create your own pixels on piskelapp (https://www.piskelapp.com/) and
make a gif image.

abdd9ce8-57d5-11ed-a0df-cd6ac8ca54ea.gif (768×768)
(piskel-imgstore-b.appspot.com)

30
23.Do the following tasks in OpenCV.

a. Load an image and Give the title of the image


b. Change the colour of image and Change the image to grayscale
c. Print the shape of image
d. Display the maximum and minimum pixels of image
e. Crop the image and extract the part of an image
f. Save the Image

31

You might also like