Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

project 4 python In a geometry class, you are studying interesting formulas for circles, squares, spheres, and cubes. You are writing a program to encode

project 4 python In a geometry class, you are studying interesting formulas for circles, squares, spheres, and cubes. You
are writing a program to encode those formulas and generate accurate results.
2 User Interface
2.1 Input
The program asks the user for a size (which will be used for radius and side length, depending on the
shape), and the unit of measure being used. Example:
Enter size for side and radius: 5
Enter unit of measure, e.g., inches: inches
2.2 Output
Displays an attractive and aligned report with all the results, as shown below. Note that the numbers here
are merely samples and are intentionally incorrect; you will need to figure out what is right here!
--------------------------------------------
Square Calculations
--------------------------------------------
Perimeter: 9.85 linear inches
Area: 17.91 square inches
--------------------------------------------
Cube Calculations
--------------------------------------------
Volume: 514.99 cubic inches
Surface area: 75.32 square inches
--------------------------------------------
Circle Calculations
--------------------------------------------
Circumference: 13.83 linear inches
Area: 29.22 square inches
--------------------------------------------
Sphere Calculations
--------------------------------------------
Volume: 146.25 cubic inches
Surface area: 83.11 square inches

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro PowerShell For Database Developers

Authors: Bryan P Cafferky

1st Edition

1484205413, 9781484205419

More Books

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago