Computers and Technology

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: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 18:20, LuchaPug
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
image
Computers and Technology, 22.06.2019 14:40, davidb1113
You begin your first day of responsibilities by examining the recent is security breach at gearup to get ideas for safeguards you will take. at gearup, criminals accessed the company's improperly-secured wireless system and stole customers' credit card information as well as employee social security numbers. what kind of computer crime did gearup face?
Answers: 3
image
Computers and Technology, 23.06.2019 09:00, Riddledjam44623
Before you record your own voice, you should a. record other people's voices b. warm up and practice difficult names c. listen to your favorite songs d. read a transcript of a good radio news segment
Answers: 1
image
Computers and Technology, 23.06.2019 20:30, kaylee2828
Column a of irma’s spreadsheet contains titles for each row, but her document is too big and will be printed three pages across. she wants to be sure that every page will be understood. what can irma do to with this problem?
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:

Konu
Mathematics, 26.04.2021 22:20
Konu
Mathematics, 26.04.2021 22:20