Ai Practical File Class 10th (1)
Ai Practical File Class 10th (1)
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]
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:
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.
CODE:
OUTPUT: