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: 1. The height of the base of a cylinder
2. The radius of the base of a cylinder
The program then outputs (in order):
1. The volume of the cylinder.
2. 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, << endl; cout « fixed << showpoint << setprecision(2); cout << "Enter the radius of the base of the cylin 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, 22.06.2019 19:20
Write a program that prompts the user to input a string. the program then uses the function substr to remove all the vowels from the string. for example, if str = "there", then after removing all the vowels, str = "thr". after removing all the vowels, output the string. your program must contain a function to remove all the vowels and a function to determine whether a character is a vowel.
Answers: 2
question
Computers and Technology, 22.06.2019 21:00
So im doing this school challenge and the teachers said whats the average text a student gets a day so i need to get about 20 in a day but dont know how can you guys 2163371293
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
question
Computers and Technology, 24.06.2019 11:00
Each row in a database is a set of unique information called a(n) ? a.) table. b.) record. c.) object. d.) field.
Answers: 2
You know the right answer?
Consider the following program in which the statements are in the incorrect order. Rearrange the sta...
Questions
Questions on the website: 13722367