Question: Using python. Create a code that uses the following: A square pyramid has a base that is square and all triangle faces are congruent isosceles

Using python. Create a code that uses the following:
A square pyramid has a base that is square and all triangle faces are congruent isosceles triangles. (An isosceles triangle is a triangle in which two of the sides are equal.) Here is a picture of a square pyramid, and one that shows various labeled lines.
Length of the base: a
Height of the pyramid: h
Volume =a2h3
Slant height, s=h2+(a2)22 This is the
Pythagorean Theorem part.
Area of one pyramid side =s**a2
For this program you are to determine two things about a square pyramid, 1) the surface area of the four sides, and 2) the volume. Do not include the surface area of the base.
10 pts TEST CASES:
Attach a separate document (word or excel will do) that shows your hand calculations for the surface area and volume of these two pyramids:
#1: Height: 5.0'
Base: 2.5'
#2: Height: 2.5'
Base: 4.3'
Show your work, not just the results. Use these test cases to test your program and verify it is returning the correct results.
Program:
Be sure that your program output is neatly presented to the user.
The program asks the user to enter the pyramid height (in feet) and length of the base (in feet).
Your program will need to determine the surface area of the faces by using the Pythagorean theorem. The formulas are in the box above.
Your output should neatly show the height, base, total surface area, and volume of the pyramid using 3 decimal places of accuracy for all values.
Using python. Create a code that uses the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!