Computers and Technology

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;

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 21:10, itsmichaelhere1
Dameas communication challenge is due to which factor
Answers: 2
image
Computers and Technology, 23.06.2019 12:40, melaniem50
Curriculum exam to process a resident's payment, you must click on onesite payments home page. from the a. reports b. my settings o c. transactions o d. rent tab
Answers: 1
image
Computers and Technology, 24.06.2019 00:00, Amrinderkhattra
Visualizing a game of “tag” to remember the meaning of contagious
Answers: 3
image
Computers and Technology, 24.06.2019 03:30, mprjug6
Which explains extrinsic motivation? a)motivation in which there is a reward b)motivation that is personally satisfying c)motivation that is personally meaningful d)motivation in which the subject is interesting
Answers: 1
Do you know the correct answer?
Consider the following program in which the statements are in the incorrect order. rearrange the sta...

Questions in other subjects:

Konu
Mathematics, 31.05.2020 05:58