Question: c++ Question 4 (10pt): Calculating sphere volume and area Create a program that takes a radius as a floating-point value (as double), and it prints

c++

c++ Question 4 (10pt): Calculating sphere volume and area Create a program

Question 4 (10pt): Calculating sphere volume and area Create a program that takes a radius as a floating-point value (as double), and it prints both the volume and surface area of a sphere with the given radius. The formulas are: volume = nr3 surfaceArea = 41tr2 For , use M_PI from #include Expected output (bold is user input) Enter a radius: 3.3 Volume: 150.533 Surface area: 136.848 The file should be named as sphereVolumeArea.cpp. Don't forget to head over to Code Runner on Moodle and paste your solution in the answer box

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 Databases Questions!