Question: TASK 2 - iostream (20 marks): Write a C++ program to calculate the volume (V) and surface area (A) for a cylinder with parameters described
TASK 2 - iostream (20 marks): Write a C++ program to calculate the volume (V) and surface area (A) for a cylinder with parameters described below. In your program: 1. The radius and height values must be using 2 decimal points within the given data range stated below. 2. All the values for radius and height must be entered by the user using the keyboard. 3. Set the value of pi=3.1416 as a global variable. 4. The formulas for volume and surface area must be declared using arithmetic operators with relevant operator precedence application. Check the answers obtain from the program with manual calculation. Formula: r=2.55to3.75h=7.85to9.65 V=r2h A=2rh+2r2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
