You are on page 1of 13

BAL BHAVAN PUBLIC SCHOOL

G.C. Lagan Marg, Pkt-B, Mayur Vihar Ph-II, Delhi-91

ARTIFICIAL INTELLIGENCE (AI) – PRojECT FILE


( TERm – 2 )

Information :
Name ( Submitted by ) – Priyancy Upreti
Class and section – IX B
Roll number – 14
Admission Number – 3535
Subject – Artificial Intelligence (AI)

Mentor Details :
Submitted to – Ms. Sakshi Dixit ( TGT : Computer Science )
Submitted on – 17 / 01 / 2024

Teacher’s Signature
Project File Questions -:
Q1. Write a program to find the given number is positive or negative.
Q2. Write a program to find if the given number is prime or not.
Q3. Write a program to check if the given number is palindrome or not.
Q4. Write a program to check if the given number is Armstrong or not.
Q5. Write a program to find a factorial of a number.
Q6. Write a program to find a Fibonacci of a number.
Q7. Write a program to print the following pattern.

Q8. Write a program to print the following pattern.

Q9. An electric power distribution company charges its domestic


consumers as follows:
Write a program that reads the customer number & power consumed
and prints the amount to be paid by the customer. Note that the output
should be well formatted.
Q10. Write a program to print a multiplication table of the entered
number by the user.
soFTwARE usEd
Python –
Python is a high-level, general-purpose programming
language. It supports multiple programming paradigms,
including structured, object-oriented and functional
programming.

Guido van Rossum began working on Python in the late 1980s as a successor to
the ABC programming language and first released it in 1991 as Python.

Rather than building all of its functionality into its core, Python was designed to
be highly extensible via modules. This compact modularity has made it
particularly popular as a means of adding programmable interfaces to existing
applications. Van Rossum's vision of a small core language with a large standard
library and easily extensible interpreter stemmed from his frustrations with ABC,
which espoused the opposite approach.

• Designed by Guido van Rossum


• Developer - Python Software Foundation
• First appeared - 20 February 1991; 32 years ago
• OS - Windows, macOS, Linux/UNIX, Android[5][6] and a
few other platforms.
Solutions of the questions

Q.1 Write a program to find the given number is positive or


negative.

Source Code –

Output –
Q2. Write a program to find if the given number is prime or
not.

Source Code –

Output –
Q3. Write a program to check if the given number is
palindrome or not.

Source Code-

Output –
Q.4 Write a program to check if the given number is
Armstrong or not.

Source Code-

Output –
Q. 5 Write a program to find a factorial of a number.

Source Code –

Output –
Q6. Write a program to find a Fibonacci of a number.

Source Code –

Output –
Q7. Write a program to print the following pattern.

Source Code –

Output –
Q8. Write a program to print the following pattern.

Source Code –

Output –
Q9. An electric power distribution company charges its
domestic consumers as follows:

Write a program that reads the customer number & power


consumed and prints the amount to be paid by the customer.
Note that the output should be well formatted.

Source Code –

Output –
Q. 10 Write a program to print a multiplication table of the
entered number by the user.

Source Code –

Output –

You might also like