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, 04.07.2019 18:10
Manometers are good examples of measuring instruments, nowadays they are not as common as before. a)-capacitive probe gauges b)-gravitational gauges deformation ) gauges d)-digital gauges
Answers: 1
question
Engineering, 04.07.2019 18:10
Water at the rate of 1 kg/s is forced through a tube with a 2.5 cm inner diameter. the inlet water temperature is 15°c, and the outlet water temperature is 50°c. the tube wall temperature is 14°c higher than the local water temperature all along the length of the tube. what is the length of the tube?
Answers: 3
question
Engineering, 04.07.2019 19:10
Plan an experiment to measure the surface tension of a liquid similar to water. if necessary, review the ncfmf video surface tension for ideas. which method would be most suitable for use in an undergraduate laboratory? what experimental precision could be expected?
Answers: 2
question
Engineering, 04.07.2019 19:20
Amass-spring-viscous damper system of mass 3 kg has a frequency of 100 rad/s and is critically damped. its initial conditions are x(0)-3 mm and (0)-2.3 m/s. does the system overshoot its equilibrium position? prove your answer
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
Chemistry, 14.12.2020 23:10
question
Mathematics, 14.12.2020 23:10
question
Mathematics, 14.12.2020 23:10
question
Mathematics, 14.12.2020 23:10
question
Medicine, 14.12.2020 23:10
question
Chemistry, 14.12.2020 23:10