Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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):
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions