c++ problem do with function
Write a C++ function to compute the volume of a cylinder thataccepts the cylinder diameter and height as arguments. The functionshould return the volume of the cylinder. Write a complete C++program below that will demonstrate the function by calling itafter asking the user to enter values for the diameter and heightfrom the keyboard. Assume that the user may enter values withdecimal places. The function definition should be placed after thefunction main(). Create a do-while loop that allows the user torepeat computations for multiple cylinders. After each transaction,ask the user if they would like to process another cylinder. Theuser will reply with a "yes" or "no". Be sure to includedocumentation for your program and the function as discussed inclass.
c++ problem do with function Write a C++ function to compute the volume of a cylinder that accepts the cylinder diameter
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am