Parh Kakkar COMPUTER FILE

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 16

MODERN PUBLIC

SCHOOL

COMPUTER SCIENCE
PROJECT FILE
PARTH KAKKAR
xI th - B
11223

QUESTION 1
Write a python code to enter radius of a circle and
calculate area and circumference. Print the outputs
with the proper messages.

Page 1 of 16
QUESTION 2
Write a python code to calculate the simple interest.
Enter principal amount, rate of interest and time
period from the user and print the outputs with
proper messages.

QUESTION 3
Write a python code to enter a number and check if it
is a multiple of 3. Print the outputs with proper
messages.

Page 2 of 16
QUESTION 4
Write a code to enter age and gender of a person.
Check if that person is eligible to get married or not.
Print the desired messages.

QUESTION 5
Consider a teacher is creating report cards of
students of her class. She has got the marks of the
students and wants to calculate the grades based on

Page 3 of 16
the range given below. Write the code to help her for
the same.
MARKS GRADE
>=95 O
<95 & >=85 A
<85 & >=75 B
<75 C

QUESTION 6
Write a python code to enter three numbers and find
the smallest of the three.

Page 4 of 16
QUESTION 7
You are an accounts officer, write a code to calculate
Net Salary of an employee on the basis of the follow
table:
BASIC HRA PF NET
SALARY SALARY
>=10000 5% OF 5% OF BASIC+HR-
BASIC BASIC PF
>=5000 & 3% OF 3% OF BASIC+HR-
<10000 BASIC BASIC PF
<5000 2% OF 2% OF BASIC+HR-
BASIC BASIC PF

Page 5 of 16
QUESTION 8
Write a menu driven code
➔to accept side of a square and display its area and
perimeter.
➔to accept length and breadth of a rectangle and
display its area and perimeter.
➔to accept radius of a circle and display its area and
circumference.
➔to accept base and height of a triangle and display
its area. (Area=1/2*b*h)
➔to accept three sides of a triangle and calculate its
area using Heron's Formula.
s= (a + b + c)/2
A= s*(s-a)*(s-b)*(s-c)**0.5

Page 6 of 16
QUESTION 9
Write a menu driven code to

Page 7 of 16
➔accept temperature in Fahrenheit and display it in
Celsius. {C=(F-32) * 5/9}
➔accept temperature in Celsius and display it in
Fahrenheit.
{F=C*9/5+32}

QUESTION 10
Write a Python Script to accept time in minutes and
display corresponding time in hours and minutes.
Example, if Input is 75 minutes, the output is 1 hour
and 15 minutes.

Page 8 of 16
QUESTION 11
Write a python script to accept the height in inches
and display it in feet and inches.

QUESTION 12
Write Python Script to swap (interchange the values)
of two numbers. Display two numbers with memory
location before and after swapping. Judge if same or
different ids are allotted to them.

Page 9 of 16
QUESTION 13
Write a code to enter three numbers and check
largest and smallest of the three.

Page 10 of 16
QUESTION 14
Write a python script to print even and odd numbers
between 20 and 50.

Page 11 of 16
QUESTION 15
Write a python script to print Fibonacci series as
follows:
0 1 1 2 3 5 8 13.....

Page 12 of 16
QUESTION 16
Write a python script to enter a number and check if
it is prime or not

Page 13 of 16
QUESTION 17
Write a python script to enter a number and print its
table
Example: if input is 6
Output should be:
6X1=6
6X2=12
Up to 10

QUESTION 18

Page 14 of 16
Write a python script to print following pattern
(using nested loop)
1
12
123
1234
12345

Page 15 of 16
A PROJECT MADE BY

 PARTH KAKKAR

THANK YOU

Page 16 of 16

You might also like