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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 04:00, china236
In a word processing program, such as microsoft word, which feature to you choose the desired picture enhancement?
Answers: 2
image
Computers and Technology, 23.06.2019 13:00, dimondqueen511
Which one of the following voltages should never be measured directly with a vom? a. 1200 v b. 500 v c. 800 v d. 100v
Answers: 2
image
Computers and Technology, 23.06.2019 19:30, 123iamthe1
You can apply several different worksheet themes from which tab?
Answers: 1
image
Computers and Technology, 24.06.2019 01:00, summerjoiner
Verify each identity[tex] \frac{csc}{cot \: x \: + \: tan \: x} = cos \: x[/tex]
Answers: 1
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: