Code a full program to calculate the volume and surfacearea


please code in c++

Code a full program to calculate the volume and surfaceArea of a cylinder using functions for promptingfor and reading the data, doing the calculations, and writing the results. The prototypes of the necessary functions are given below:

void getData(double& r, double& h);

double calculateVolume (double r, double h); formula is Pi*r2*h

double calculateSurfaceArea (double r, double h); formula is 2Pi*r*h

void printResults (double r, double h, double v, double s);

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Code a full program to calculate the volume and surfacearea
Reference No:- TGS02887575

Expected delivery within 24 Hours