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 22:40
Write an assembly program with the following specifications.a). in the main block, you should have two registers r4 and r5. they should be checked in an infinite loop. if r4 is greater than r5, then the greater subroutine will be called. if r4 is less than r5, then the less subroutine will be called. if r4 equals r5, then no operations will be done
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
1. so if i wanted to build a linux server for web services(apache) with 1cpu and 2 gb of memory.-operating at 75% of memory capacity2. a windows server with 2 cpu/ 4gb memory- operating at 85% of memory capacity3. a storage server with 1 cpu/ 2gb memory- operating at 85% of memory capacityhow much memory do i have to add for each server.so that the utilization rate for both cpu and memory is at a baseline of 60%."the details for the cpu like its processor or the memory's speed isnt to be concerned" yeah i kept asking my teacher if he's even sure about the but the whole class seems to be confused and the project is due in 3 days..this is a virtualization project where i have to virtualize a typical server into an exsi hypervisor.
Answers: 2
question
Computers and Technology, 22.06.2019 18:00
Suppose an astronomer discovers a large, spherical-shaped body orbiting the sun. the body is composed mostly of rock, and there are no other bodies sharing its orbit. what is the best way to categorize this body? a. planet b. moon c. comet d. asteroid
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
The following is an excerpt from a slide presentation. today we will inverse operations solving equations using inverse operations solving inequalities using inverse operations from which part of the presentation does the slide most likely come from? a. introduction b. outline c. body d. conclusion
Answers: 1
You know the right answer?
Consider the following program in which the statements are in the incorrect order. rearrange the sta...
Questions
question
Mathematics, 28.12.2019 23:31
question
Mathematics, 28.12.2019 23:31
question
Mathematics, 28.12.2019 23:31
Questions on the website: 13722361