Ip Project
Ip Project
INRODUCTION
TOPIC: MATH HUB
Math hub is an entry level educational app that solves basic math problems
It primarily targets at students as a learning tool for students below
High school. It contains features that are designed solve mathematical
problems. It includes features like addition, subtraction, multiplication, division,
root of a number, etc. And features like total surface area, curved surface area
and volume of cube, cuboid, cone, cylinder etc. This app obtains the numerical
Values from the user and calculates the given values as per the selected function
and shows the result.
SYNOPSIS
Math is a quite interesting subject to learn. It deals with a lot of numerical
Values and alphabetic values which makes math's quite difficult for the
Students, so we have created an app to help students learn and improve
Their mathematical skills.
SOFTWARE REQUIRED
• Python
• MS word
• Google
• MYSQL
1
CODING
#math hub
Print(“welcome to math hub”)
print("would you like to continue ? ")
use=input("yes or no : ")
print('-'*40)
if use.lower()=='yes':
print("Pick your choice")
print("Arithmetic")
print("Mensuration")
print('-'*40)
Choice=input("Enter your choice : ")
if Choice.lower()=='arithmetic':
print(" * Decide your category * ")
print("1 - Addition")
print("2 - Subraction")
print("3 - Multiplication")
print("4 - Division")
print("5 - Exponent")
print("6 - Square Root")
print("7 - Average")
print('-'*40)
print("Pick your choice")
category=input("Enter any number from 1 to 7 : ")
print("-"*40)
if category=='1':
print(" ADDITION ")
print(" ")
numbers=[]
N=int(input("Enter how many numbers you want to add : "))
for a in range(N):
Number=float(input("Enter the numbers you want to add : "))
numbers.append(Number)
Sum=sum(numbers)
print(" ")
print("The sum of numbers : ",Sum)
print("-"*40)
elif category=='2':
print(" SUBRACTION ")
print(" ")
x=float(input("Enter the minuend : "))
y=float(input("Enter the subrtraend : "))
difference=x-y
print(" ")
print("The difference of numbers is : ",difference)
elif category=='3':
print(" MULTIPLICATION ")
print(" ")
X=[]
import math
n=int(input("Enter how many numbers you want to multiply : "))
1
for c in range(n):
x=float(input("Enter the number you want to multiply : "))
X.append(x)
Multiply= math.prod(X)
print(" ")
print("The product of numbers is : ",Multiply)
print("-"*40)
elif category=='4':
print(" DIVISION ")
print(" ")
print("Decide your choice")
print("1 - Remainder")
print("2 - Quotient")
decision=input("Enter your decision : ")
print("-"*40)
if decision=='1':
print(" REMAINDER ")
print(" ")
X=float(input("Enter the dividend : "))
Y=float(input("Enter the divisor : "))
import math
Remainder=math.remainder(X,Y)
print(" ")
print("The remainder of ",X,"by",Y,"is :",Remainder)
print("-"*40)
elif decision=='2':
print(" QUOTIENT ")
print(" ")
X=float(input("Enter the dividend : "))
Y=float(input("Enter the divisor : "))
Quotient=X/Y
print(" ")
print("The quotient of ",X,"by",Y,"is :",Quotient)
print('-'*40)
else:
print("Pick your choice from 1 or 2")
elif category=='5':
print(" EXPONENT ")
print(" ")
X=float(input("Enter the number : "))
Y=float(input("Enter the power : "))
exponent=X**Y
print(" ")
print("The exponent of ",X," to the power of ",Y," is :",exponent)
print("-"*40)
elif category=='6':
print(" SQUARE ROOT ")
print(" ")
X=float(input("Enter the number : "))
import math
Root=math.sqrt(X)
1
area=base*height
print(" ")
print("The area of the parallelogram is : ",area)
elif decision=='2':
print(" PERIMETER OF THE PARALLELOGRAM ")
print(" ")
height=float(input("Enter the hegith of the parallelogram : "))
breadth=float(input("Enter the breadth of the parallelogram : "))
perimeter=2 *(height + breadth)
print(" ")
print("The perimeter of the parallelogram is : ",perimeter)
else:
print("Pick from 1 or 2 ")
print("-"*40)
else:
print("Pick any number from 1 to 5 ")
print("-"*40)
elif pick=='2':
print("Select your choice ")
print("1 - Cube")
print("2 - Cubiod ")
print("3 - Cone")
print("4 - Sphere")
print("5 - Cylinder")
category=input("Enter any number from 1 to 5 : ")
print("-"*40)
if category=='1':
print(" CUBE ")
print(" ")
print("What do you want to find ? ")
print("1 - Total Surface Area ")
print("2 - Lateral surface area")
print("3 - Volume")
decision=input("Enter any number from 1 to 3 : ")
print("-"*40)
if decision=='1':
print(" TOTAL SURFACE AREA OF CUBE ")
print(" ")
side=float(input("Enter the side of the cube : "))
area=6*(side*side)
print(" ")
print("The total surface area of the cube is : ",area)
elif decision=='2':
print(" LATERAL SURFACE AREA OF CUBE ")
print(" ")
side=float(input("Enter the side of the perimeter : "))
perimeter=12*side
print(" ")
print("The lateral surface area of the cube is : ",perimeter)
elif decision=='3':
print(" VOLUME OF CUBE ")
1
print(" ")
side=float(input("Enter the side of the cube : "))
volume=side*side*side
print(" ")
print("The volume of the cube is : ",volume)
else:
print("Pick any number from 1 to 3")
print("-"*40)
if category=='2':
print(" CUBOID ")
print(" ")
print("What do you want to find ? ")
print("1 - Total Surface Area ")
print("2 - Lateral surface Area ")
print("3 - Volume")
decision=input("Enter any number from 1 to 3 : ")
print("-"*40)
if decision=='1':
print(" TOTAL SURFACE AREA OF THE CUBOID ")
print("")
base=float(input("Enter the base of the cuboid : "))
height=float(input("Enter the height of the cuboid : "))
length=float(input("Enter the length of the cuboid : "))
area=(2*length*base)+(2*length*height)+(2*base*height)
print(" ")
print("The total surface area of the cuboid is : ",area)
elif decision=='2':
print(" LATERAL SURFACE AREA OF THE CUBOID")
print(" ")
base=float(input("Enter the base of the cuboid : "))
height=float(input("Enter the height of the cuboid : "))
length=float(input("Enter the length of the cuboid : "))
perimeter=4*(base+height+length)
print(" ")
print("The lateral surface of the cuboid is : ",perimeter)
elif decision=='3':
print(" VOLUME OF THE CUBIOD ")
print(" ")
base=float(input("Enter the base of the cuboid : "))
height=float(input("Enter the height of the cuboid : "))
length=float(input("Enter the length of the cuboid : "))
volume=length*height*base
print(" ")
print("The volume of the cuboid is : ",volume)
else:
print("Pick any number from 1 to 3")
print("-"*40)
if category=='3':
print(" CONE ")
print(" ")
print("What do you want to find ? ")
1
volume=4/3*3.14*(radius*radius*radius)
print(" ")
print("The volume of the sphere is ",volume)
else:
print("pick from 1 or 2 ")
print("-"*40)
if category=='5':
print(" CYLINDER")
print(" ")
print("What do you want to find ? ")
print("1 - total Surface Area ")
print("2 - Curved surface area")
print("3 - Volume")
decision=input("Enter any number from 1 to 3 : ")
print("-"*40)
if decision=='1':
print(" TOTAL SURFACE AREA OF CYLINDER")
print(" ")
radius=float(input("Enter the radius of the cylinder : "))
height=float(input("Enter the height of the cylinder : "))
tsa=2*3.14*radius*(radius+height)
print(" ")
print("The total surface area of cylinder is : ",tsa)
elif decision=='2':
print(" CURVED SURFACE AREA OF THE CYLINDER")
print(" ")
radius=float(input("Enter the radius of the cylinder : "))
height=float(input("Enter the height of the cylinder : "))
csa=2*3.14*radius*height
print(" ")
print("The curved surface area of a cylinder is : ",csa)
elif decision=='3':
print(" VOLUME OF CYLINDER ")
print(" ")
radius=float(input("Enter the radius of the cylinder : "))
height=float(input("Enter the height of the cylinder : "))
volume=3.14*radius*radius*height
print(" ")
print("The volume of cylinder is : ",volume)
else:
print("pick from 1 or 2 ")
print("-"*40)
else:
print("Pick your choice from Arithmetic or Mensuration")
print("-"*40)
elif use.lower()=='no':
print("*"*40)
else:
print("Pick Yes or No")
1
OUTPUT:-
Welcome to Math Helper
would you like to continue ?
yes or no : YES
----------------------------------------
Pick your choice
Arithmetic
Mensuration
----------------------------------------
Enter your choice : arithmetic
* Decide your category *
1 - Addition
2 - Subraction
3 - Multiplication
4 - Division
5 - Exponent
6 - Square Root
7 - Average
----------------------------------------
Pick your choice
----------------------------------------
Enter any number from 1 to 7 : 7
----------------------------------------
AVERAGE
Enter 1 or 2 : 1
----------------------------------------
Select your choice
1 - Square
2 - Rectangle
3 - Triangle
4 - Circle
5 - Paralellogram
Enter 1 or 2 : 1
----------------------------------------
AREA OF THE SQUARE
Enter 1 or 2 : 1
----------------------------------------
AREA OF THE RECTANGLE
1
Enter 1 or 2 : 1
AREA OF THE TRIANGLE
Enter 1 or 2 : 2
----------------------------------------
PERIMETER OF THE TRIANGLE
1
Enter 1 or 2 : 1
----------------------------------------
AREA OF THE CIRCLE
Enter 1 or 2 : 1
----------------------------------------
AREA OF THE PARALLELOGRAM
----------------------------------------
TOTAL SURFACE AREA OF THE CUBIOD
Enter 1 or 2 : 1
----------------------------------------
AREA OF SPHERE
Enter 1 or 2 : 2
----------------------------------------
VOLUME OF SPHERE
----------------------------------------
Enter any number from 1 to 5 : 5
----------------------------------------
CYLINDER
CONCLUSION
We have created an app to support an assist student with their mathematical problems
And give solutions for it. It helps the students to formally interact with the
App. It has different categories of easy and difficult problem-solving programs
To help the students with math.
Improvements: -
References: -
• Ncert class 11 informatic practices book by national council of educational research
and training 2019
-head publication: M.Siraj Anwar
1
INDEX