Engineering
Engineering, 07.03.2020 02:32, razuahammad1603

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;

answer
Answers: 1

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, colin774
The higher the astm grain size number, the finer the gran is. a)-true b)-false
Answers: 2
image
Engineering, 04.07.2019 19:20, carterdaw
Aseries piping system conveys methyl alcohol. the system consists of 70 m of 1- nominal pipe follow by 50 m of 2-nominal pipe, both schedule 40 commercial steel. the 1-nominal pipe contains 3 90° elbows (regular) anda fully open gate valve, all threaded. the pressure drop through the system is 150 kpa. determine the volume flow rate through the system that is horizontally laid.
Answers: 1
image
Engineering, 06.07.2019 03:10, zah16
List and describe the parts of boxford cnc milling machine with pictures?
Answers: 2
image
Engineering, 06.07.2019 04:10, keke6361
Consider a power plant with water as the working fluid that operates on an ideal rankine cycle. it has a net power output of 45mw. superheated steam enters the turbine at 7mpa and 500°c (h=3411.4 kj/kg; s=6.8 kj/kg k) and is cooled in the condenser at a pressure of 10 kpa by running cooling water from a lake through the tubes of the condenser at a rate of 2000 kg/s. (a) show the cycle on a t-s diagram (a right schematic is fine - you do not need to calculate the temperatures at each point); (b)-determine the work done by the turbine and the pump in kj/kg; (c)-the mass flow rate of water used by the power plant; (d)-the thermal efficiency of the cycle; (e)-the temperature rise of the cooling water. assume the cooling water is incompressible with cp 4.18 kj/kg°c.
Answers: 3
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: