Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project # 4 2 D & 3 D Geometry Calculator 1 Problem Overview In a geometry class, you are studying interesting formulas for circles, squares,

Project #42D & 3D Geometry Calculator
1 Problem Overview
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

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions