Question: Write a complete C++ program for the following The side surface area(i.e., s), of a cylinder is given by the formula s = 2 *

Write a complete C++ program for the following
The side surface area(i.e., s), of a cylinder is given by the formula
s = 2 * radius*length
(i.e., radius and length measurements of the cylinder). Using this formula, write a C++ function named surfarea() that accepts two double-precision numbers. Then, allow the user in the main function to call the designed surfarea() function to display the side surface area of the cylinder after inputting two double-precision values (i.e., radius and length) by the user where radius is the cylinders radius, length is the length of the cylinder and =3.14159 .

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!