subject

C++ CODE

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:

The height of the base of a cylinder
The radius of the base of a cylinder
The program then outputs (in order):

The volume of the cylinder.
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, 2.0)

<< endl;

cout << fixed << showpoint << setprecision(2);

cout << "Enter the radius of the base of the cylinder: ";

cin >> height;

cout << endl;

#include

const double PI = 3.14159;

using namespace std;

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:00
Create a cell reference in a formula by typing in the cell name or         a. right-clicking the cell. b. clicking the cell. c. clicking the column where the cell is located. d. clicking the row where the cell is located.
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Which of these options are the correct sequence of actions for content to be copied and pasted? select content, click the copy button, click the paste button, and move the insertion point to where the content needs to be inserted. click the copy button, select the content, move the insertion point to where the content needs to be inserted, and click the paste button. select the content, click the copy button, move the insertion point to where the content needs to be inserted, and click the paste button. select the content, move the insertion point to where the content needs to be inserted, click the copy button, and click the paste button.
Answers: 3
question
Computers and Technology, 23.06.2019 02:30
Research data that is presented using descriptive language is said to be
Answers: 2
question
Computers and Technology, 23.06.2019 10:00
What is estimated time of arrival (eta)? a device that measures the acceleration (the rate of change of velocity) of an item and is used to track truck speeds or taxi cab speeds a gps technology adventure game that posts the longitude and latitude location for an item on the internet for users to find a north/south measurement of position the time of day of an expected arrival at a certain destination and is typically used for navigation applications
Answers: 3
You know the right answer?
C++ CODE

Consider the following program in which the statements are in the incorrect or...
Questions
question
Mathematics, 10.02.2020 22:21
Questions on the website: 13722360