1. Engineering
  2. Computer Science
  3. a input output and processing results write a c program...

Question: a input output and processing results write a c program...

Question details

A. Input, Output and Processing Results Write a C++ program called Lab3A.cpp that reads input from the keyboard and prints output to the screen using cin and cout, respectively. Specifically, you are to write a C++ program that does the following to calculate the surface area of a cylinder as follows r radius h height Assign the value 3.14 to a variable called pi. Prompt for and read in the radius of the cylinder. Prompt for and read in the vertical height of the cylinder. . Calculate the area of the trapezoid using the formula Area 2πτ2+h(2πτ) where r is the radius, h is the height, and π is pi. Be sure to use the pow() function to calculate the radius squared. Print the area result of the cylinder in a meaningful message to the terminal
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution