Math Problems
Last updated
Last updated
print("Problem 1 - Rectangle Area")
Assign 5 to the variable l and 7 to variable w. Assign the variable Area according to the formula:
Print the value of Area.
print("Problem 2 - Square Area")
Assign 11 to the variable a. Assign the variable Area according to the formula:
Print the value of Area.
print("Problem 3 - Circle")
Assign 5 to the variable r. Assign the variable Area and Circumference according to the formula. Print the value of Area and Circumference.
To access the value of pi, import the Python math library
Print the value of Area and Circumference.
print("Problem 4 - Triangle Area")
Assign 11 to the variable b and 5 to the variable h. Assign the variable Area according to the formula.
Print the value of Area.
print("Problem 5 - Parallelogram Area")
Assign 5 to the variable b and 13 to the variable h. Assign the variable Area according to the formula.
Print the value of Area.
print("Problem 6 - Trapezoid Area")
Assign 10 to h, 7 to a and 9 to b. Assign the variable Area according to the formula:
Print the value of Area.
print("Problem 7 - Kite Area")
Assign 8 to p and 9 to q.
print("Problem 8 - Rectangular Prism Volume")
Assign 7 to l, 4 to w and 5 to h. Assign the variable Volume according to the formula:
Print the value of Volume.
print("Problem 9 - Cube Volume")
Assign 13 to a. Assign the variable Volume according to the formula:
Print the value of Volume.
print("Problem 10 - Pyramid Volume")
Assign 6 to l, 9 to w and 8 to h. Assign the variable Volume according to the formula:
Print the value of Volume.
print("Problem 11 - Cylinder Volume")
Assign 13 to r, 4 to h. Assign the variable Volume according to the formula.
Print the value of Volume.
print("Problem 12 - Sphere Volume")
Assign 9 to r. Assign the variable Volume according to the formula.
Print the value of Volume.
print("Problem 13 - Cone Volume")
Assign 5 to r and 12 to h. Assign the variable Volume according to the formula.
Print the value of Volume.
print("Problem 14 - Rectangular Solid Surface Area")
Assign 11 to l, 12 to w and 13 to h. Assign the variable SA according to the formula:
Print the value of SA.
print("Problem 15 - Cube Surface Area")
Assign 14 to a. Assign the variable Area according to the formula.
Print the value of SA.
print("Problem 16 - Sphere Surface Area")
Assign 15 to r. Assign the variable SA according to the formula.
Print the value of SA.
print("Problem 17 - Right Cylinder Surface Area")
Assign 9 to r. Assign 6 to h. Assign the variable SA according to the formula:
Print the Area.
print("Problem 18 - Triangular Prism Surface Area")
Assign 5 to b. Assign 3 to h. Assign 9 to l. Assign 5 to s. Assign the variable SA according to the formula.
Print the value of SA.
print("Problem 19 - Tetrahedron Surface Area")
Assign 9 to a. Assign the variable SA according to the formula.
Print the value of SA.
To take the square root of a number, use the math library.
print("Problem 20 - Tetrahedron Volume")
Assign 13 to a. Assign the variable Volume according to the formula.
Print the value of Volume.