0% found this document useful (0 votes)
20 views

Ai Practical File Class 10th (1)

Uploaded by

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

Ai Practical File Class 10th (1)

Uploaded by

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

N.K.

BAGRODIA GLOBAL SCHOOL,


DWARKA
This is to certify that ADITI KASHYAP of class X B of
N. K. BAGRODIA GLOBAL SCHOOL has done her PRACTICAL
FILE under my supervision. She has taken interest and has
shown at most sincerity in completion of this project. I
certify this Practical File up to my expectation & as per
guidelines issued by CBSE, NEW DELHI.

Examiner
INDEX
S no. TOPIC PAGE Date TEACHERS
SIGN.
1. WAP to add two no.’s
2. WAP to print area of rectangle
3. WAP to print simple interest
4. WAP to swap 2 no’s using 2 variables
5. WAP to check if the no. is odd or even
6. WAP to check greatest among 2 no’s
7. WAP to take marks from the user and display the
percentage and grade
8. Write a menu driven program to calculate area of 3 different
shapes depending on user’s choice.
9. Write a program to arrange 3 numbers in ascending order.
10. WAP to print first 10 natural no.
11. WAP to print table of a no.
12. WAP to print the sum of first n natural no.’s
13. WAP to find the sum of the specified series.
i) x+x2+x3+…+xn
ii) x+x2/2+x3/3+…+xn/n
14. WAP to calculate factorial of a no.
15. WAP to check whether the number is Palindrome or not.
16. WAP to check whether the number is Armstrong or not.
17. WAP to check whether the number is Perfect number or
not.
18. WAP to check whether the number is Prime or not.
19. WAP to find the greatest element from a list.
20. WAP to change the multiple of 5 to 0 and others to 1 in a
list.
21. 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]

22. Write a program to create a 2D array using NumPy.


23. Write a program to convert a python list to a NumPy array.
24. 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.
25. 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.
26. 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]
27. 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]
28. Observe the given data for monthly sales of one of the
salesmen for 6 months. Plot them on the line chart.

Month Jan Feb Mar Apr May June


Sales 2500 2100 1700 3500 3000 3800

Apply the following customizations to the chart:


• Give the title for the chart - "Sales Stats"
• Use the "Month" label for X-Axis and "Sales" for Y-Axis.
• Display legends.
• Use dashed lines with the width 5 point.
• Use red color for the line.
• Use dot marker with blue edge color and black fill color.
29. Create your own pixels on piskelapp and make a gif image.
30. Do the following tasks in OpenCV.
• Load an image & Give the title of the image
• Change the image to grayscale
• Print the shape of image
• Display the maximum and minimum pixels of image
• Crop the image.
• Save the Image

gg
1. WAP to add two no.’s

CODE:

OUTPUT:
2. WAP to print area of rectangle

CODE:

OUTPUT:
3. WAP to print simple interest

CODE:

OUTPUT:
4. WAP to swap 2 no’s using 2 variables

CODE:

OUTPUT:
5. WAP to check if the no. is odd or even

CODE:

OUTPUT:
6. WAP to check greatest among 2 no’s

CODE:

OUTPUT:
7. WAP to take marks from the user and display the percentage and grade

CODE:

OUTPUT:
8.Write a menu driven program to calculate area of 3 different shapes depending on user’s choice.

CODE:

OUTPUT:
99. Write a program to arrange 3 numbers in ascending order

CODE:

OUTPUT:
910. WAP to print first 10 natural no.

CODE:

OUTPUT:
911. WAP to print table of a no.

CODE:

OUTPUT:
12. WAP to print the sum of first n natural no.’s

CODE:

OUTPUT:
13. WAP to find the sum of the specified series.
i) x+x2+x3+…+xn

CODE:

OUTPUT:

13. WAP to find the sum of the specified series.


ii) x+x2/2+x3/3+…+xn/n

CODE:

OUTPUT:
14. WAP to calculate factorial of a no.

CODE:

OUTPUT:
15. WAP to check whether the number is Palindrome or not.

CODE:

OUTPUT:
16. WAP to check whether the number is Armstrong or not.

CODE:

OUTPUT:
17. WAP to check whether the number is Perfect number or not.

CODE:

OUTPUT:
18. WAP to check whether the number is Prime or not.

CODE:

OUTPUT:
19. WAP to find the greatest element from a list.

CODE:

OUTPUT:
20. WAP to change the multiple of 5 to 0 and others to 1 in a list.

CODE:

OUTPUT:
21.Write a program to create a list of numbers and swap thecontent 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]

CODE:

OUTPUT:
24. 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:
25. 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:
28.Observe the given data for monthly sales of one of thesalesmen for 6 months. Plot them on the line chart.

Apply the following customizations to the chart:


• Give the title for the chart - "Sales Stats"
• Use the "Month" label for X-Axis and "Sales" for Y-Axis.
• Display legends.
• Use dashed lines with the width 5 point.
• Use red color for the line.
Use dot marker with blue edge color and black fill color.

CODE:

OUTPUT:

You might also like