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, 03.07.2019 14:10
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
question
Engineering, 03.07.2019 14:10
The y form of iron is known as: a) ferrite b) cementite c) perlite d) austenite
Answers: 3
question
Engineering, 04.07.2019 18:10
If a particle moves along a path such that r : (3 sin t) m and ? : 2t rad, where t is in seconds. what is the particle's acceleration in m/s in 4 seconds? a)- 16.43 b)- 16.29 c)- 15.21 d)- 13.79
Answers: 1
question
Engineering, 04.07.2019 18:10
Aplate clutch has a single pair of mating friction surfaces 250-mm od by 175-mm id. the mean value of the coefficient of friction is 0.30, and the actuating force is 4 kn. a) find the maximum pressure and the torque capacity using the uniform-wear model. b) find the maximum pressure and the torque capacity using the uniform-pressure model.
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, 22.02.2021 20:00
question
Mathematics, 22.02.2021 20:00
question
English, 22.02.2021 20:00