subject
Engineering, 18.10.2019 19:30 kimlyn58p0wyn0

Write two versions of a program that reads a sequence of positive integers from the user, calculates their geometric mean, and print the geometric mean. note: in mathematics, geometric mean of a dataset a, a2, a..an is given by: wai a2 a3 "an for example, the geometric mean of 2, 9 and 12 is equal to 6 (v2-9-12-6). your two versions of the program should read the integer sequence in two ways: a) first read the length of the sequence for example, an execution would look like: enter the length of the sequence: 3 enter your sequence: 1 the geometric mean is: 1.8171 b) keep reading the numbers until 'done' is entered. for example, an execution would look like: enter a non-empty sequence of positive integers, each one in a separate line. end your sequence by typing done: 1 done the geometric mean is: 1.8171

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 14:10
If the thermal strain developed in polyimide film during deposition is given as 0.0044. assume room temperature is kept at 17.3 c, and thermal coefficient of expansion for the film and the substrate are 54 x 10^-6c^-1 and 3.3 x 10^-6c^-1respectively. calculate the deposition temperature.
Answers: 3
question
Engineering, 04.07.2019 18:10
Abrake has a normal braking torque of 2.8 kip in and heat-dissipating cast-iron surfaces whose mass is 40 lbm. suppose a load is brought to rest in 8.0 s from an initial angular speed of 1600 rev/min using the normal braking torque; estimate the temperature rise of the heat dissipating surfaces.
Answers: 3
question
Engineering, 04.07.2019 18:10
Refrigerant 134a enters an insulated compressor operating at steady state as saturated vapor at -26°c with a volumetric flow rate of 0.18 m3/s. refrigerant exits at 9 bar, 70°c. changes in kinetic and potential energy from inlet to exit can be ignored. determine the volumetric flow rate at the exit, in m3/s, and the compressor power, in kw.
Answers: 1
question
Engineering, 04.07.2019 19:20
To design a steam turbine to produce 12,000 hp power. a engineer comsiders using a steady state stean low st 1160fr and engineer considers using a steady state steam flow at 1160°r and 450 psia to drive this steam turbine. the exhaust of the steam is cooled by the lake (vacuum). heat losing to the surroundings is measured at a rate of 555.55 btu/s. (a) sketch the system with the given conditions. (b) neglecting kinetic and potential energy changes from inlet to exit, determine the volumetric flow rate of the steam at the inlet, (ft'/hr). must clearly show unit conversions at crtical terms.
Answers: 1
You know the right answer?
Write two versions of a program that reads a sequence of positive integers from the user, calculates...
Questions
question
Mathematics, 24.04.2021 23:20
question
Health, 24.04.2021 23:20
question
Mathematics, 24.04.2021 23:20
Questions on the website: 13722363