Question: please do these all in C++ , 2019 visual studio, thankyouu and please upload screenshots too LabTask wk01. Write a program to calculate the volume




LabTask wk01. Write a program to calculate the volume of spheres, cylinders and boxes. Your program should contain three functions, each called calcVolume and returning a double. The volumes should be calculated according to the following formulas: -- The volume of a box is its width multiplied by its height multiplied by its length. an The volume of a sphere is -43 rr3 wherer is the radius of the sphere. -- The volume of a cylinder is rur2h, wherer is the radius of the cylinder and his the height of the cylinder. Define a global constant PI and set its value to 3.14. Your program should ask the user which shape's volume they want to calculate, and get the required information. It should then call the correct calcVolume function and output the volume to the screen. Lab02-01. What does Listing 1-1 do? Listing 1-1. 1 /// Read the program and determine what the program does. 2 3 import
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
