Math Problems

Problem 1

print("Problem 1 - Rectangle Area")

Assign 5 to the variable l and 7 to variable w. Assign the variable Area according to the formula:

Area=lwArea=lw

Print the value of Area.

Problem 2

print("Problem 2 - Square Area")

Assign 11 to the variable a. Assign the variable Area according to the formula:

Area=a2Area=a^2

Print the value of Area.

Problem 3

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.

Area=πr2Area=πr^2
Circumference=2πrCircumference = 2πr

Print the value of Area and Circumference.

Problem 4

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.

Area=12bhArea=\frac{1}{2}bh

Print the value of Area.

Problem 5

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.

Area=bhArea=bh

Print the value of Area.

Problem 6

print("Problem 6 - Trapezoid Area")

Assign 10 to h, 7 to a and 9 to b. Assign the variable Area according to the formula:

Area=h(a+b)2Area=h\frac{(a+b)}{2}

Print the value of Area.

Problem 7

print("Problem 7 - Rectangular Prism Volume")

Assign 7 to l, 4 to w and 5 to h. Assign the variable Volume according to the formula:

Volume=lwhVolume=lwh

Print the value of Volume.

Problem 8

print("Problem 8 - Cube Volume")

Assign 13 to a. Assign the variable Volume according to the formula:

Volume=a3Volume = a^3

Print the value of Volume.

Problem 9

print("Problem 9 - Pyramid Volume")

Assign 6 to l, 9 to w and 8 to h. Assign the variable Volume according to the formula:

V=lwh3V=\frac{lwh}{3}

Print the value of Volume.

Problem 10

print("Problem 10 - Cylinder Volume")

Assign 13 to r and 4 to h. Assign the variable Volume according to the formula.

Volume=πr2hVolume=πr^2h

Print the value of Volume.

Problem 11

print(“Problem 11 - Sphere Volume”)

Assign 9 to r. Assign the variable Volume according to the formula.

V=43πr3V=\frac{4}{3}\pi r^3

Print the value of Volume.

Problem 12

print("Problem 12 - Cone Volume")

Assign 5 to r and 12 to h. Assign the variable Volume according to the formula.

V=πr2h3V=\pi r^2 \frac{h}{3}

Print the value of Volume.

Problem 13

print("Problem 13 - Rectangular Solid Surface Area")

Assign 11 to l, 12 to w and 13 to h. Assign the variable SA according to the formula:

SA=2(wl+hl+hw)SA=2(wl+hl+hw)

Print the value of SA.

Problem 14

print("Problem 14 - Cube Surface Area")

Assign 14 to s. Assign the variable SA according to the formula.

Area=6a2Area=6a^2

Print the value of SA.

Problem 15

print("Problem 15 - Sphere Surface Area")

Assign 15 to r. Assign the variable SA according to the formula.

Area=4πr2Area=4πr^2

Print the value of SA.

Problem 16

print("Problem 17 - Right Cylinder Surface Area")

Assign 9 to r. Assign 6 to h. Assign the variable SA according to the formula:

Area=2πrh+2πr2Area=2πrh+2πr^2

Print the Area.

Problem 17

print("Problem 17 - 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.

SA=bh+2ls+lbSA=bh+2ls+lb

Print the value of SA.