subject
Engineering, 24.10.2019 04:50 kelsotay623

Consider the following c++ program in which the statements are in the incorrect order. rearrange the statements so that it prompts the user to input the radius of a circle and outputs the area and circumference of the circle. #include { int main() cout < < "enter the radius: "; cin > > radius; cout < < endl; double radius; double area; using namespace std; return 0; cout < < "area = " < < area < < endl; area = pi * radius * radius; circumference = 2 * pi * radius; cout < < "circumference = " < < circumference < < endl; const double pi = 3.14; double circumference; }

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:20
Agas mixture consists of 8 kmol of h2 and 2 kmol of n2. determine the mass of each gas and the apparent gas constant of the mixture.
Answers: 3
question
Engineering, 04.07.2019 18:20
Water vapor initially at 10 bar and 400 °c is contained within a piston-cylinder assembly. the water lost heat to the surrounding according to isochoric (iso-volumetric) process until its temperature is 150 °c. the water is then condensed isothermally to saturated liquid. for the water as a system, calculate the work in kj/kg
Answers: 2
question
Engineering, 04.07.2019 19:10
The sum of the normal stresses does not change as the stress state rotates through an angle. a)-trune b)- false
Answers: 2
question
Engineering, 04.07.2019 19:20
Apure substance is a)-mixture of various chemical elements or compounds b)-substance that has a fixed chemical composition throughout c)-mixture that is homogeneous (such as air) d)-all the answers
Answers: 3
You know the right answer?
Consider the following c++ program in which the statements are in the incorrect order. rearrange the...
Questions
question
Mathematics, 01.12.2021 02:30
Questions on the website: 13722360