You are on page 1of 23

COMPUTER SCIENCE PROJECT

Name :-- Aayan Shahid


Class:-- XI Section:-- A
Roll no:-- 6 Subject:-- Computer science
Kendriya Vidyalaya Jhalwa IIIT Prayagraj
CERTIFICATE

 This is to certify that Aayan Shahid of class


XI has successfully completed the
PROJECT WORK ON “Menu based
programme on mensturation”. It is further
certified that this project is the individual
work of the candidate.

 Signature:-

 Date:- 2ND March , 2022

ABSTRACT
 In This Project I Have Make a Programme
On The Topic “MENSTURATION” . this
project shows many different types of
calculation

Programme(input)
import math

print("WELCOME")

print("Plz choose your choice")

pi = 3.14

print("1. Do you want to start")

print("2. Do you want to exit")

s = int(input("Enter your choice 1 / 2:-"))

if s == 1:

while True:

print(" MAIN MENU ")

print("1. VOLUME ")

print("2. AREA ")

print("3. PERIMETER")

print("4. EXIT ")

a = int(input("Enter your choice 1 / 2 /3 :-"))

if a == 1:

print("1. Sphere")

print("2. Cuboid")

print("3. Cube")

print("4. Cone")

print("5. Cylinder")

print("6. Hemisphere")

b = int(input("Enter your choice 1 / 2 / 3 / 4 / 5 / 6 :-"))

if b == 1:

print ("Enter the values for finding the volume of sphere ")

a1 = int(input("Enter the radius of Sphere:-"))


t = pow(a1,3)

print ("The volume of sphere is",4/3*pi*t)

if b == 2:

print("Enter the values for finding the volume of Cuboid")

a2 = int(input("Enter the length:-"))

a3 = int(input("Enter the bradth:-"))

a4 = int(input("Enter the height:-"))

print ("The volume of Cuboid is",a2*a3*a4)

if b == 3:

print("Enter the values for finding the volume of Cube")

a5 = int(input("Enter the side of cube:-"))

r = pow(a5,3)

print("The volume of cube is",r)

if b == 4:

print("Enter the values for finding the volume of Cone")

a6 = int(input("Enter the height:-"))

a7 = int(input("Enter the radius:-"))

y = pow(a7,2)

print ("The volume of cube is",1/3*pi*y*a6)

if b == 5:

print("Enter the values for finding the volume of Cylinder")

a35 = int(input("Enter the radius of Cylinder:- "))

a36 = int(input("Enter the height of Cylinder:- "))

a37 = pow(a35,2)

print("The volume of Cylinder is ",pi*a37*a36)


if b == 6:

print("Enter the values for finding the volume of Hemisphere")

a38 = int(input("Enter the radius of cube:-"))

a39 = pow(a38,3)

print("The volume of Hemisphere id ",2/3*pi*a39)

if a == 2:

print("1. 2d shapes")

print("2. 3d shapes")

b1 = int(input("Enter your choice 1 / 2 :- "))

if b1 == 1:

print("1. Rectangle")

print("2. Triangle")

print("3. Square")

print("4. Rhombus")

print("5. Trapezium")

print("6. Circle")

print("7. Equilateral triangle")

print("8. Parallelogram")

c1 = int(input("Enter your choice 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 :-"))

if c1 == 1:

print("Enter the values for finding the area of Rectangle ")


a8 = int(input("Enter the lenght of rectangle:- "))

a9 = int(input("Enter the breadth of rectangle:- "))

print("The area of rectangle is",a8*a9)

if c1 == 2 :

print("Enter the values for finding the area of Triangle ")

a10 = int(input("Enter the height of Triangle:- "))

a11 = int(input("Enter the base of Triangle:- "))

print("The area of Triangle is",1/2*a10*a11)

if c1 == 3:

print("Enter the values for finding the area of square ")

a12 = int(input("Enter the side of square :- "))

rh = pow(a12,2)

print("The area of square is",rh)

if c1 == 4:

print("Enter the values for finding the area of Rhombus ")

a13 = int(input("Enter the first diagonal of Rhombus:- "))

a14 = int(input("Enter the second diagonal of Rhombus:- "))

print("The area of rhombus is",1/2*a13*a14)

if c1 == 5:

print("Enter the values for finding the area of Trapezium ")


a15 = int(input("Enter the first base of Trapezium:- "))

a16 = int(input("Enter the second base of Trapezium:- "))

a17 = int(input("Enter the height of Trapezium:- "))

a18 = a15 + a16

print("The area of Trapezium is",a18*1/2*a17)

if c1 == 6:

print("Enter the values for finding the area of Circle ")

a19 = int(input("Enter the radius of Circle:- "))

cir = pow(a19,2)

print("The area of Circle is",pi*cir)

if c1 == 7:

print("Enter the values for finding the area of Equilateral triangle")

a20 = int(input("Enter the side of Equilateral triangle :-"))

eqt = pow(a20,2)

ewt = 0.433

print("The area of Equilateral triangle is",ewt*eqt)

if c1 == 8:

print("Enter the values for finding the area of Parallelogram")

a21 = int(input("Enter the base of Parallelogram:- "))

a22 = int(input("Enter the height of Parallelogram:- "))

print("The area of Parallelogram is",a21*a22)


if b1 == 2:

print("1. Curved Surface Area")

print("2. Total Surface Area")

c2 = int(input("Enter your choice 1 / 2 :- "))

if c2 == 1:

print("1. Cuboid")

print("2. Cube")

print("3. Cylinder")

print("4. Cone")

print("5. Hemisphere")

c3 = int(input("Enter your choice 1 / 2 / 3 / 4 / 5 :-"))

if c3 == 1:

print("Enter the values for finding the C.S.A of Cuboid")

a23 = int(input("Enter the length of Cuboid :- "))

a24 = int(input("Enter the breadth of Cuboid:- "))

a25 = int(input("Enter the height of Cuboid:- "))

a26 = a23 + a24

print("The C.S.A of cuboid is",2*a25*a26)

if c3 == 2:

print("Enter the values for finding the C.S.A of Cube")

a27 = int(input("Enter the side of Cube:- "))


a28 = pow(a27,2)

print("The C.S.A of cube is",4*a28)

if c3 == 3:

print("Enter the values for finding the C.S.A of Cylinder")

a29 = int(input("Enter the radius of Cylinder:- "))

a30 = int(input("Enter the height of Cylinder:- "))

print("The C.S.A of Cylinder is", 2*pi*a29*a30)

if c3 == 4:

print("Enter the values for finding the C.S.A of Cone")

a31 = int(input("Enter the radius of Cone:- "))

a32 = int(input("Enter the slant height of Cone:- "))

print("The C.S.A of cone is", pi*a31*a32)

if c3 == 5:

print("Enter the values for finding the C.S.A of Hemisphere")

a33 = int(input("Enter the radius of Hemisphere:- "))

a34 = pow(a33,2)

print("The C.S.A of Hemisphere is",2*pi*a34)

if c2 == 2:

print("1. Cuboid")

print("2. Cube")
print("3. Cylinder")

print("4. Cone")

print("5. Hemisphere")

print("6. Sphere")

c4 = int(input("Enter your choice 1 / 2 / 3 / 4 / 5 / 6 :-"))

if c4 == 1:

print("Enter the values for finding the T.S.A of Cuboid")

a40 = int(input("Enter the lenght of Cuboid :- "))

a41 = int(input("Enter the breadth of Cuboid:- "))

a42 = int(input("Enter tht height of Cuboid:- "))

a43 = a40*a41 + a41*a42 + a42*a40

print("The T.S.A of cuboid is",2*a43)

if c4 == 2:

print("Enter the values for finding the T.S.A of Cube")

a44 = int(input("Enter the side of Cube :- "))

a45 = pow(a44,2)

print("The T.S.A of cube is",6*a45)

if c4 == 3:

print("Enter the values for finding the T.S.A of Cylindet")

a46 = int(input("Enter the radius of Cylinder:- "))

a47 = int(input("Enter the height of Cylinder:- "))

a48 = a46 + a47

print("The T.S.A of Cylinder is",2*pi*a46*a48)


if c4 == 4:

print("Enter the values for finding the T.S.A of Cone")

a49 = int(input("Enter the radius of Cone:- "))

a50 = int(input("Enter the slant height of cone:- "))

a51 = a49 + a50

print("The T.S.A of Cone is",pi*a49*a51)

if c4 == 5:

print("Enter the values for finding the T.S.A of Hemisphere")

a52 = int(input("Enter the radius of Hemisphere"))

a53 = pow(a52,2)

print("The T.S.A of Hemisphere is",3*pi*a53)

if c4 == 6:

print("Enter the values for finding the T.S.A of Sphere")

a54 = int(input("Enter the radius of Sphere:- "))

a55 = pow(a54,2)

print("The T.S.A of Sphere is",4*pi*a55)

if a == 3:

print("1. Rectangle")

print("2. Square")

print("3. Circle")
print("4. Triangle")

print("5. Semicircle")

b2 = int(input("Enter your choice 1 / 2 / 3 / 4 / 5 "))

if b2 == 1:

print("Enter the values for finding the perimeter of Rectangle")

a56 = int(input("Enter the lenght of rectangle:- "))

a57 = int(input("Enter the breadth of rectangle:- "))

a58 = a56 + a57

print("The perimeter of rectangle is",2*a58)

if b2 == 2:

print("Enter the values for finding the perimeter of Square")

a59 = int(input("Enter the side of square:- "))

print("The perimeter of square is",4*a59)

if b2 == 3:

print("Enter the values for finding the perimeter of Circle")

a60 = int(input("Enter the radius of circle:- "))

print("The perimeter of circle is",2*pi*a60)

if b2 == 4:

print("Enter the values for finding the perimeter of Triangle")

a61 = int(input("Enter the first side:- "))

a62 = int(input("Enter the second side:- "))

a63 = int(input("Enter the third side:- "))

a64 = a61 + a62 + a63

print("The perimeter of triangle is",a64)

if b2 == 5:
print("Enter the values for finding the perimeter of Semicircle")

a65 = int(input("Enter the radius of the Semicircle:-"))

print("The perimeter of Semicircle is",pi*a65)

elif a == 4:

break;
Programme(output)
=============== RESTART: C:\Users\Win10\Downloads\ayaanshahid.py ===============

WELCOME

Plz choose your choice

1. Do you want to start

2. Do you want to exit

Enter your choice 1 / 2:-1

MAIN MENU

1. VOLUME

2. AREA

3. PERIMETER

4. EXIT

Enter your choice 1 / 2 /3 :-1

1. Sphere

2. Cuboid

3. Cube

4. Cone

5. Cylinder

6. Hemisphere

Enter your choice 1 / 2 / 3 / 4 / 5 / 6 :-1

Enter the values for finding the volume of sphere

Enter the radius of Sphere:-45

The volume of sphere is 381510.0

MAIN MENU

1. VOLUME

2. AREA

3. PERIMETER
4. EXIT

Enter your choice 1 / 2 /3 :-1

1. Sphere

2. Cuboid

3. Cube

4. Cone

5. Cylinder

6. Hemisphere

Enter your choice 1 / 2 / 3 / 4 / 5 / 6 :-2

Enter the values for finding the volume of Cuboid

Enter the length:-45

Enter the bradth:-5

Enter the height:-5

The volume of Cuboid is 1125

MAIN MENU

1. VOLUME

2. AREA

3. PERIMETER

4. EXIT

Enter your choice 1 / 2 /3 :-2

1. 2d shapes

2. 3d shapes

Enter your choice 1 / 2 :- 1

1. Rectangle

2. Triangle

3. Square

4. Rhombus

5. Trapezium
6. Circle

7. Equilateral triangle

8. Parallelogram

Enter your choice 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 :-1

Enter the values for finding the area of Rectangle

Enter the lenght of rectangle:- 4

Enter the breadth of rectangle:- 5

The area of rectangle is 20

MAIN MENU

1. VOLUME

2. AREA

3. PERIMETER

4. EXIT

Enter your choice 1 / 2 /3 :-2

1. 2d shapes

2. 3d shapes

Enter your choice 1 / 2 :- 1

1. Rectangle

2. Triangle

3. Square

4. Rhombus

5. Trapezium

6. Circle

7. Equilateral triangle

8. Parallelogram

Enter your choice 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 :-2

Enter the values for finding the area of Triangle

Enter the height of Triangle:- 45


Enter the base of Triangle:- 5

The area of Triangle is 112.5

MAIN MENU

1. VOLUME

2. AREA

3. PERIMETER

4. EXIT

Enter your choice 1 / 2 /3 :-2

1. 2d shapes

2. 3d shapes

Enter your choice 1 / 2 :- 2

1. Curved Surface Area

2. Total Surface Area

Enter your choice 1 / 2 :- 1

1. Cuboid

2. Cube

3. Cylinder

4. Cone

5. Hemisphere

Enter your choice 1 / 2 / 3 / 4 / 5 :-4

Enter the values for finding the C.S.A of Cone

Enter the radius of Cone:- 4

Enter the slant height of Cone:- 5

The C.S.A of cone is 62.800000000000004

MAIN MENU

1. VOLUME

2. AREA

3. PERIMETER
4. EXIT

Enter your choice 1 / 2 /3 :-2

1. 2d shapes

2. 3d shapes

Enter your choice 1 / 2 :- 2

1. Curved Surface Area

2. Total Surface Area

Enter your choice 1 / 2 :- 1

1. Cuboid

2. Cube

3. Cylinder

4. Cone

5. Hemisphere

Enter your choice 1 / 2 / 3 / 4 / 5 :-2

Enter the values for finding the C.S.A of Cube

Enter the side of Cube:- 45

The C.S.A of cube is 8100

MAIN MENU

1. VOLUME

2. AREA

3. PERIMETER

4. EXIT

Enter your choice 1 / 2 /3 :-2

1. 2d shapes

2. 3d shapes

Enter your choice 1 / 2 :- 2

1. Curved Surface Area

2. Total Surface Area


Enter your choice 1 / 2 :- 2

1. Cuboid

2. Cube

3. Cylinder

4. Cone

5. Hemisphere

6. Sphere

Enter your choice 1 / 2 / 3 / 4 / 5 / 6 :-1

Enter the values for finding the T.S.A of Cuboid

Enter the lenght of Cuboid :- 54

Enter the breadth of Cuboid:- 4

Enter tht height of Cuboid:- 4

The T.S.A of cuboid is 896

MAIN MENU

1. VOLUME

2. AREA

3. PERIMETER

4. EXIT

Enter your choice 1 / 2 /3 :-2

1. 2d shapes

2. 3d shapes

Enter your choice 1 / 2 :- 2

1. Curved Surface Area

2. Total Surface Area

Enter your choice 1 / 2 :- 2

1. Cuboid

2. Cube

3. Cylinder
4. Cone

5. Hemisphere

6. Sphere

Enter your choice 1 / 2 / 3 / 4 / 5 / 6 :-6

Enter the values for finding the T.S.A of Sphere

Enter the radius of Sphere:- 4

The T.S.A of Sphere is 200.96

MAIN MENU

1. VOLUME

2. AREA

3. PERIMETER

4. EXIT

Enter your choice 1 / 2 /3 :-3

1. Rectangle

2. Square

3. Circle

4. Triangle

5. Semicircle

Enter your choice 1 / 2 / 3 / 4 / 5 1

Enter the values for finding the perimeter of Rectangle

Enter the lenght of rectangle:- 45

Enter the breadth of rectangle:- 5

The perimeter of rectangle is 100

MAIN MENU

1. VOLUME

2. AREA

3. PERIMETER

4. EXIT
Enter your choice 1 / 2 /3 :-3

1. Rectangle

2. Square

3. Circle

4. Triangle

5. Semicircle

Enter your choice 1 / 2 / 3 / 4 / 5 5

Enter the values for finding the perimeter of Semicircle

Enter the radius of the Semicircle:-5

The perimeter of Semicircle is 15.700000000000001

MAIN MENU

1. VOLUME

2. AREA

3. PERIMETER

4. EXIT

Enter your choice 1 / 2 /3 :-4

>>>

>>>

>>>

>>>

>>>
ACknowledgement
 I would like to take this opportunity to
thank my computer science teacher Mr.
Sunil Kumar Gupta Sir for encouraging me
and guiding me in my project and for
providing valuable suggestions. This project
would not have come so far without support
from you Sir. Thank you Sir for giving me
an opportunity .

THANK YOU SIR!

You might also like