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

AI_project_file_Class IX

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)
30 views

AI_project_file_Class IX

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/ 8

Delhi Public School, Faridabad

Artificial Intelligence
Subject Code : 417

Practical File/ Student Portfolio


Session 2024-25
Class - IX

Submitted by :
Name: ___________________________
Class/Sec : ________________________
ACKNOWLEDGEMENT

I would like to express my special thanks of gratitude to


my Computer Teacher Ms. _________________ for her
able guidance and support in completing this project.

I would also like to extend my gratitude to our Principal


Mr. Anil Kumar and Vice Principal Ms. Sangeeta
Chakravarty for providing me with all the required
facilities.

Secondly, I would also like to thank my parents and


friends who helped me in finishing this project.
Instructions
1. Students have to do the entire task assigned.
2. Write the code and take the screen shot of output and attach along with
the program.
3. Printout to be taken on A4 sheet (preferably coloured).
4. Cover page and acknowledgment sheet should be there in the
beginning.
5. Project file to be submitted by December 20, 2024.

Python Project Work


1. Personal Information Program
Create a Python program that displays personal information such as
Name, Father's Name, Class, and School Name.
2. Square of a Number
Write a Python program to find and display the square of the number 7.
3. Sum of Two Numbers
Create a Python program to calculate and print the sum of two numbers,
15 and 20.
4. Convert Kilometres to Meters
Write a Python program to convert a length given in kilometres into
meters.
5. Multiplication Table of 5
Write a Python program to print the table of 5 up to five terms.
6. Area and Perimeter of a Rectangle
Write a Python program to calculate and display the area and perimeter
of a rectangle.
7. Area of a Triangle
Create a Python program to calculate the area of a triangle given its base
and height.
8. Average Marks Calculator
Write a Python program to calculate the average marks of three
subjects.
9. Voting Eligibility Checker
Create a Python program that checks if a person is eligible to vote based
on their age.
10. First 10 Natural Numbers
Write a Python program to print the first 10 natural numbers.
1. Personal Information Program Create a Python program that displays personal information such as Name,
Father's Name, Class, and School Name.
-Code: name = "Swarnit Gaur"
father_name = "Hemant Gaur"
class_name = "9th Grade"
school_name = "Delhi Public School"
# Display the information
print("Personal Information")
print("---------------------")
print(f"Name: {name}")
print(f"Father's Name: {father_name}")
print(f"Class: {class_name}")
print(f"School Name: {school_name}")
Output:

2. Square of a Number Write a Python program to find and display the square of the number 7.
-Code: # Define the number
number = 7
# Calculate the square of the number
square = number * number
# Display the result
print(f"The square of {number} is {square}.")
Output:

3. Sum of Two Numbers Create a Python program to calculate and print the sum of two numbers, 15 and 20.
Code: # Define the two numbers
number1 = 15
number2 = 20
# Calculate the sum of the two numbers
sum_of_numbers = number1 + number2
# Display the result
print(f"The sum of {number1} and {number2} is {sum_of_numbers}.")
Output:

4. Convert Kilometres to Meters


Code: # Define the length in kilometers
kilometers = 5 # example value
# Convert kilometers to meters
meters = kilometers * 1000
# Display the result
print(f"{kilometers} kilometers is equal to {meters} meters.")
Output:
5. Multiplication Table of 5
Code: # Define the number
number = 5

# Print the multiplication table of 5 up to five terms


print(f"Multiplication table of {number}:")
for i in range(1, 6):
result = number * i
print(f"{number} x {i} = {result}")

6. Area and Perimeter of a Rectangle


Code: # Define the dimensions of the rectangle
length = 10 # example value
width = 5 # example value

# Calculate the area and perimeter of the rectangle


area = length * width
perimeter = 2 * (length + width)

# Display the results


print(f"Area of the rectangle: {area} square units")
print(f"Perimeter of the rectangle: {perimeter} units")

7. Area of a Triangle
Code: # Define the base and height of the triangle
base = 8 # example value
height = 5 # example value
# Calculate the area of the triangle
area = 0.5 * base * height

# Display the result


print(f"Area of the triangle: {area} square units")

8. Average Marks Calculator


Code: # Define the marks of three subjects
subject1 = 85 # example value
subject2 = 90 # example value
subject3 = 78 # example value
# Calculate the average marks
average_marks = (subject1 + subject2 + subject3) / 3

# Display the result


print(f"Average marks: {average_marks}")

9. Voting Eligibility Checker


Code: # Define the age of the person
age = 18 # example value
# Check if the person is eligible to vote
if age >= 18:
print("You are eligible to vote.")
else:
print("You are not eligible to vote.")

1 0. First 10 Natural Numbers


Code: # Print the first 10 natural numbers
print("The first 10 natural numbers are:")
for i in range(1, 11):
print(i)

You might also like