Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C++ Program that asks its user to input 3 diameter values in meters; the program will then compute and display the Volume and
Write a C++ Program that asks its user to input 3 diameter values in meters; the program will then compute and display the Volume and the Surface Area of the hemispheres formed by each diameter. Additionally, the program will compute and display the average volume and average surface area of the 3 hemispheres A hemisphere is 1/2 of a sphere. Cut in half by passing a plane through the center of the sphere. Calculations for volume V and surface area SA are essentially 1/2 of a sphere. ddiameter r = radius (a diameter) C base circumference Vvolume ?A = curved surface area B - base surface area SA total surface area Formulas of interest are: Volume of a hemisphere: 2 3 3 Circumference of the base of a hemisphere: Curved surface area of a hemisphere (1 side, external only) Calculate the base surface area of a hemisphere (a circle): Total surface area of a hemisphere: Be sure to create TT as a symbolic constant in your program, and use a trigonometric function to initialize it to its approximate value (ie, ? cos-1-1) Be sure to use proper formatting in your code. Provide appropriate prompts to the user. The output should be labeled clearly (a text indicating what is being displayed, and a text after the value displayed to indicate the unit if applicable) and formatted neatly (the displayed value must be shown in decimal notation with significant/insignificant digit er the decimal point
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started