"Write a complete C++ program to find the Volume and the Surface Area of a Cylinder. The program should let the user enter Radius and Height of the cylinder. The user should always enter values which should be only numerical values. If a user has entered a value without an appropriate data type then appropriate error messages must be displayed. Hint: Use functions to write your program" help on this?
1
Expert's answer
2012-12-26T10:45:18-0500
//#include <stdafx> #include <iostream> using namespace std;
void vvv(int r,int h) { double V=0;
& V=3.14*r*r*h;
cout << "V= "<< V<< endl; }
void sss(int r,int h) {
double s=0; s=2*2*3.14*r*r+2*3.14*r*h;
cout <<& "S= "<<s<< endl; }
int main() { int digit; cout << "Enter r and s: "; int r,h; cin >> r; & cin >> h;
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment