subject

Consider the following program in which the statements are in the incorrect order. rearrange the statements so that the program prompts the user to input the height and the radius of the base of a cylinder and outputs the volume and surface area of the cylinder. formant the output to two decimal places.
#include
#include
int main ()
{}
double height;
cout < < ”volume of the cylinder = “
< cout < < “enter the height if the cylinder: “;
cin > > radius;
cout < < endl;
return 0;
double radius;
cout < < “surface area: “
< < 2 * radius * + 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: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:00
Select all that apply. what types of documents can be created using word-processing software? business newsletters letters of application presentation slideshows customer databases
Answers: 1
question
Computers and Technology, 23.06.2019 01:10
Are special combinations of keys that tell a computer to perform a command. keypads multi-keys combinations shortcuts
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Why do we mark tlc plates with pencil and not with pen
Answers: 2
question
Computers and Technology, 24.06.2019 18:20
7. design a circuit with three inputs (x, y, and z) representing the bits in a binary number, and three outputs (a, b, and c) also representing bits in a binary number. when the input is 1, 2, or 3, the binary output should be one lesser than the input. when the input is 4, 5, or 6, the binary output should be one greater than the input. when the input is 0, the output is 0, and when the input is 7, the output is 7. show your truth table, all computations for simplification, and the final circuit.
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, 06.03.2021 05:30
question
Arts, 06.03.2021 05:30
question
Computers and Technology, 06.03.2021 05:30
question
Biology, 06.03.2021 05:30
Questions on the website: 13722367