subject

Consider the following program in which the statements are in the incorrect order. Rearrange the statements in the following order so that the program prompts the user to input: 1. The height of the base of a cylinder
2. The radius of the base of a cylinder
The program then outputs (in order):
1. The volume of the cylinder.
2. The surface area of the cylinder
Format the output to two decimal places. #include #include int main() double height; cout << "Volume of the cylinder = " << PI * pow(radius, 2.0) * height << endl; cout << "Enter the height of the cylinder: cin >> radius; cout << endl; return 0; double radius; cout << "Surface area: << 2 * PI * radius * height + 2 * PI * pow(radius, << endl; cout « fixed << showpoint << setprecision(2); cout << "Enter the radius of the base of the cylin cin >> height; cout << endl; #include const double PI = 3.14159; using namespace std;

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 12:30, gerardoblk5931
An atom's diameter is about 0.1 nanometer (1×10-9m), and a human hair is about 1×10-3m. how many times greater is a human hair than an atom's diameter? sorry pushed wronf button but this is math
Answers: 3
image
Computers and Technology, 22.06.2019 14:10, normarismendoza
Dean wants a quick way to look up staff members by their staff id. in cell q3, nest the existing vlookup function in an iferror function. if the vlookup function returns an error result, the text “invalid staff id” should be displayed by the formula. (hint: you can test that this formula is working by changing the value in cell q2 to 0, but remember to set the value of cell q2 back to 1036 when the testing is complete.)
Answers: 3
image
Computers and Technology, 24.06.2019 01:00, kkruvc
Mastercard managers are motivated to increase (1) the number of individuals who have and use a mastercard credit card, (2) the number of banks and other clents who issue mastercards to customers and/or employees, and (3) the number of locations that accept mastercard payments. discuss how mastercard could use its data warehouse to it expand each of these customer bases.
Answers: 3
image
Computers and Technology, 24.06.2019 07:30, sunny644
John recently worked on a project about various programming languages. he learned that though procedural language programs are useful, they have disadvantages too. what is a disadvantage of programs written in procedural languages? a. programs do not represent data complexity. b. programs take more time to execute. c. programs are prone to security threats. d. programs do not interface with multiple platforms.
Answers: 3
You know the right answer?
Consider the following program in which the statements are in the incorrect order. Rearrange the sta...

Questions in other subjects:

Konu
Mathematics, 30.06.2019 04:00