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, 21.06.2019 18:20
Write the pseudocode for the following: a function called fahrenheittocelsius that accepts a real fahrenheit temperature, performs the conversion, and returns the real celsius temperature. a function called celsiustofahrenheit that accepts a real celsius temperature, performs the conversion, and returns the real fahrenheit temperature. a main module that asks user to enter a fahrenheit temperature, calls the fahrenheittocelsius function, and displays the celsius temperature with a user-friendly message. it then asks the user to enter a celsius temperature, calls the celsiustofahrenheit function, and displays the fahrenheit temperature with a user-friendly message.
Answers: 1
question
Computers and Technology, 21.06.2019 22:00
Which of the following statements correctly identifies a problem with sanitization methods? a. methods are not available to remove data ensuring that unauthorized personnel cannot retrieve data.b. even fully incinerated media can offer extractable data.c. personnel can perform sanitization steps improperly.d. stored data is physically etched into the media.
Answers: 1
question
Computers and Technology, 22.06.2019 16:20
It policy compliance and emerging technologies respond to the following: propose at least three control measures that organizations need to put in place to ensure that they remain complaint with emerging technologies and in a continually changing it environment. examine the correlation of effective configuration management and change control procedures to remain compliant with emerging technologies and it security changes.
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Best laptops for college [$100-$500 range]?
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, 12.10.2019 01:20
question
Chemistry, 12.10.2019 01:20