Question: TASK 2 - iostream ( 2 0 marks ) : make it simple Write a C + + program to calculate the volume ( V

TASK 2- iostream (20 marks): make it simple
Write a C++ program to calculate the volume (V) and surface area (A) for a cylinder
with parameters described below. In your program:
The radius and height values must be using 2 decimal points within the given
data range stated below.
All the values for radius and height must be entered by the user using the
keyboard.
Set the value pf=3.1416 as a global variable.
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.75,h=7.85to9.65
V=r2h
A=2rh+2r2
Answer (show your program and the output):
 TASK 2- iostream (20 marks): make it simple Write a C++

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!