0% found this document useful (0 votes)
6 views28 pages

Practical Program 10th

This document outlines a project in Artificial Intelligence submitted by a Grade XII student at Amrita Vidyalayam, Tiruppur, as part of their CBSE curriculum. It includes various programming exercises in Python, covering topics such as calculating sums, simple interest, checking eligibility for a driving license, and creating graphs and charts using matplotlib. The project is supervised by a teacher and includes a certification section for completion.

Uploaded by

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

Practical Program 10th

This document outlines a project in Artificial Intelligence submitted by a Grade XII student at Amrita Vidyalayam, Tiruppur, as part of their CBSE curriculum. It includes various programming exercises in Python, covering topics such as calculating sums, simple interest, checking eligibility for a driving license, and creating graphs and charts using matplotlib. The project is supervised by a teacher and includes a certification section for completion.

Uploaded by

sksuriyaa2010
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

AMRITA VIDYALAYAM SENIOR SECONDARY

MANGALAM, TIRUPPUR, TN– 641 663


(Affiliated to CBSE / New Delhi / Aff. No. 1930760)

ARTIFICIAL INTELLIGENCE

GRADE XII

(AY: 2025-2026)
Submitted in partial fulfillment of the requirement of the Central Board
of Secondary Education Certificate Examination.

SUBMITTED BY
Name :
Reg. No:

Under the guidance of


[Link] P S [Link]., [Link].,
PGT COMPUTER SCIENCE
AMRITA VIDYALAYAM SR. SEC,
TIRUPPUR

CERTIFICATE
This is to certify that the project in Artificial Intelligence (843) is
completed by………………….., student of class XII-A,
Amrita Vidyalayam [Link].,Tirupur with AISSCE No:
under the supervision of [Link] P S (Artificial Intelligence)
for the partial fulfillment of the requirements for the course
completion in pursuance of AISSCE 2025 – 26.

Date:

…………………………. …………………….

Teacher In-Charge Principal

----------------------- School seal


External Signature
[Link] DATE INDEX [Link] SIGN

1 SUM OF TWO INTEGERS 1

2 SIMPLE INTEREST 3

3 DRIVING LISENCE ELIGIBILITY 5

ODD OR EVEN NUMBER 7


4

DISPLAY EVEN NUMBERS B/W 10 TO 20 10


5

PALINDROME NUMBER 12
6

PRINTING PATTERN OF NUMBER 14


7
(4321, 432, 43, 4)

TIME AND TEMPERATURE LINE GRAPH 16


8

BAR GRAPH ON 5 SUBJECTS MARK 18


9

10 SCATTER PLOT OF HEIGHT AND WEIGHT 20

11 PIE CHART OF MONTHLY EXPENCES 22

12 25

EX. NO: 1 SUM OF TWO INTEGERS


DATE:

AIM:
To write a program to calculate the sum of two integers

ALGORITHM:

1. Start the program.


2. Input two integers from the user.
3. Add the two integers.
4. Display the sum.
5. Stop the program

CODING:

a = int(input("Enter first integer: "))


b = int(input("Enter second integer: "))
s=a+b
print("Sum =", s)

[Link]
OUTPUT:

RESULT:
Thus the program has been executed successfully

[Link]

EX. NO:2 SIMPLE INTEREST


DATE:

AIM:
To write a Python code to calculate simple interest.

ALGORITHM:
1. Start the program.
2. Input principal (P), rate of interest (R), and time in years (T).
3. Compute simple interest SI = (P × R × T) / 100.
4. Display the simple interest.
5. Stop the program.

CODING:

P = float(input("Enter principal: "))


R = float(input("Enter rate of interest: "))
T = float(input("Enter time in years: "))
SI = (P * R * T) / 100
print("Simple Interest =", SI)

[Link]
OUTPUT:

RESULT:
Thus the program has been executed successfully

[Link]
[Link] DRIVING LISENCE ALIGIBILITY
DATE:

AIM:
To check whether a user is eligible for a driving licence or not

ALGORITHM:
1. Start the program.
2. Input the age of the user.
3. If age is greater than or equal to 18, print "Eligible for driving licence", otherwise print "Not eligible for
driving licence".
4. Stop the program.

CODING:

age = int(input("Enter your age: "))


if age >= 18:
print("Eligible for driving licence")
else:
print("Not eligible for driving licence")

[Link]
OUTPUT :
RESULT:
Thus the program has been executed successfully

[Link]
EX. NO:4 ODD OR EVEN NUMBER CHEKING
DATE:

AIM:
To write a program that checks whether a given number is odd or even.

ALGORITHM:
1. Start the program.
2. Input an integer from the user.
3. If the number modulo 2 is 0, then print "Even number", otherwise print "Odd number".
4. Stop the program.

CODING:

n = int(input("Enter a number: "))


if n % 2 == 0:
print("Even number")
else:
print("Odd number")

[Link]
OUTPUT:
RESULT:
Thus the program has been executed successfully

[Link]
[Link] DISPLAY EVEN NUMBERS B/W 10 TO 20
DATE:

AIM:
To code a program to display all even numbers between 10 and 20.

ALGORITHM:

1. Start the program.


2. Use a loop from 10 to 20 (inclusive).
3. For each number in the range, check if it is even.
4. If the number is even, display it.
5. Stop the program

CODING:

for i in range(10, 21):


if i % 2 == 0:
print(i)

[Link]
OUTPUT:
RESULT:
Thus the program has been executed successfully

[Link]
[Link] PALINDROME NUMBER
DATE:

AIM:
To write a Python code to accept a number and display whether it is a palindrome or not.

ALGORITHM:
1. Start the program.
2. Input an integer from the user.
3. Store the original value in a variable.
4. Reverse the number using a loop.
5. If the reversed number equals the original number, print "Palindrome number", otherwise print "Not a
palindrome".
6. Stop the program.

CODING:

num = input("Enter a number: ")

if num == num[::-1]:

print("The number is a palindrome.")

else:

print("The number is not a palindrome.")

[Link]
OUTPUT:
RESULT:
Thus the program has been executed successfully

[Link]
[Link] PRINT PATTERN (4321, 432, 43, 4)
DATE:

AIM:
To write a program to print the following pattern:

ALGORITHM:
1. Start the program.
2. Use an outer loop from 4 down to 1 for each row.
3. For each row i, use an inner loop from 4 down to i and print the numbers without space.
4. Move to the next line after the inner loop completes.
5. Stop the program.

CODING:

for i in range(4, 0, -1):


for j in range(4, i - 1, -1):
print(j, end="")
print()

[Link]
OUTPUT:
RESULT:
Thus the program has been executed successfully

[Link]
[Link] TIME AND TEMPERATURE LINE GRAPH
DATE:

AIM:
To write a code to make a straight line graph for time and temperature.

ALGORITHM:
1. Start the program and import [Link] as plt.
2. Store time labels in one list and corresponding temperature values in another list.
3. Plot a line graph using [Link]() with appropriate x and y values.
4. Add labels for x-axis (Time) and y-axis (Temperature °C), and a title.
5. Display the graph using [Link]().
6. Stop the program.

CODING:

import [Link] as plt

time = ["10 AM", "11 AM", "12 PM", "1 PM", "2 PM"]
temp = [30, 32, 34, 33, 31]

[Link](time, temp, marker="o")


[Link]("Time")
[Link]("Temperature (°C)")
[Link]("Time vs Temperature")
[Link]()

[Link]
OUTPUT:
RESULT:
Thus the program has been executed successfully

[Link]
[Link]: 9 BAR GRAPH OF 5 SUBJECTS AND SCORE
DATE:

AIM:
To write a Python program to make a bar graph of 5 subjects and their respective scores.

ALGORITHM:
1. Start the program and import [Link] as plt.
2. Store subject names in one list and their corresponding scores in another list.
3. Use [Link]() to create a bar graph with subjects on x-axis and scores on y-axis.
4. Add labels and a title to the graph.
5. Display the graph using [Link]().
6. Stop the program.

CODING:

import [Link] as plt

subjects = ["Maths", "Science", "English", "SS", "Tamil"]


scores = [85, 90, 78, 88, 95]

[Link](subjects, scores, color="skyblue")


[Link]("Subject")
[Link]("Score")
[Link]("Scores in 5 Subjects")
[Link]()

[Link]
OUTPUT:
RESULT:
Thus the program has been executed successfully

[Link]
[Link] SCATTER PLOT OF HEIGHT AND WEIGHT
DATE:

AIM:
To create a scatter plot showing the relationship between height and weight of people.

ALGORITHM:
1. Start the program and import [Link] as plt.
2. Store height values in one list and weight values in another list.
3. Use [Link]() to create a scatter plot with height on x-axis and weight on y-axis.
4. Add labels for both axes and a title.
5. Display the graph using [Link]().
6. Stop the program.

CODING:

import [Link] as plt

height = [150, 165, 160, 175]


weight = [70, 55, 68, 50]

[Link](height, weight, color="red")


[Link]("Height (cm)")
[Link]("Weight (kg)")
[Link]("Height vs Weight")
[Link]()

[Link]
OUTPUT:
RESULT:
Thus the program has been executed successfully

[Link]
[Link] PIE CHART OF MONTHLY EXPENSES
DATE:

AIM:
To create a pie chart showing the distribution of monthly expenses (rent, food, savings, and transportation).

ALGORITHM:
1. Start the program and import [Link] as plt.
2. Store expense categories in one list and their corresponding percentages in another list.
3. Use [Link]() to create a pie chart with labels and auto-calculated percentage display.
4. Add a title to the chart.
5. Display the chart using [Link]().
6. Stop the program.

CODING:

import [Link] as plt

labels = ["Rent", "Food", "Savings", "Transportation"]


values = [40, 25, 20, 15]

[Link](values, labels=labels, autopct="%1.0f%%")


[Link]("Monthly Expenses")
[Link]()

[Link]

OUTPUT:
RESULT:
Thus the program has been executed successfully

[Link]
[Link] VISUALIZE WORD FREQUENCIES WITH ORANGE DATA MINING TOOL
DATE:

AIM:
To visualize word frequencies with Word Cloud using the Orange Data Tool.

ALGORITHM:
STEP 1: Create Corpus
 Load text documents.
STEP 2: View Corpus
 Check the text content.
STEP 3: Preprocess Text
 Clean the text (lowercase, remove stop words).
STEP 4: Generate Word Cloud
 Count words and display the most frequent ones.

WORKFLOW:

[Link]
INPUT:

Artificial intelligence is the capability of computational systems to perform tasks typically associated with
human intelligence, such as learning, reasoning, problem-solving, perception, and decision-making. It is a field
of research in computer science that develops and studies methods and software that enable machines to
perceive their environment and use learning and intelligence to take actions that maximize their chances of
achieving defined goals.

[Link]
[Link]

[Link]
OUTPUT:
RESULT:
Thus the program has been executed successfully

[Link]

You might also like