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: 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: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:30
Who can provide you with a new password when you have forgotten your old one? your provide you with a new password in case you forget your old one.
Answers: 3
question
Computers and Technology, 24.06.2019 00:30
Which boolean operator enables you to exclude a search term? a} not b} and c} or d} plus
Answers: 1
question
Computers and Technology, 24.06.2019 12:30
Why does the pc send out a broadcast arp prior to sending the first ping request
Answers: 1
question
Computers and Technology, 24.06.2019 13:30
Which of the following is not a โ€œfatal fourโ€ event?
Answers: 2
You know the right answer?
Consider the following program in which the statements are in the incorrect order. rearrange the sta...
Questions
question
Mathematics, 21.05.2020 02:03
question
History, 21.05.2020 02:03
Questions on the website: 13722363