Valid input is any real number greater than 0 for the


Write a complete program for Visual C++ to calculate and display the volume of a cylinder, given its radius and height. Your program must meet the following requirements:
· Your program should prompt the user to input the radius and height. The program should output the result with three digits after the decimal point. The output should include some explanatory text.
· Make the value of PI (3.14159) a constant in your program.
· The volume formula is PI * radius2 * height.
· Valid input is any real number greater than 0 for the radius and height of the cylinder. Your program should consider a negative input as an error and output an error statement. Do not do any calculations in this case.
· Make sure you use the appropriate data types for everything

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: Valid input is any real number greater than 0 for the
Reference No:- TGS0620031

Expected delivery within 24 Hours