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
Compute the pressure drop of 30Ā°c air flowing with a mean velocity of 8 m/s in a circular sheet-metal duct 300 mm in diameter and 15 m long. use a friction factor, f 0.02, and pair = 1.1644 kg/m a. 37.26 pa b. 25.27 pa n c. 29.34 pa d. 30.52 pa
Answers: 1
question
Engineering, 04.07.2019 19:10
Asteel wire of 2 mm diameter is fixed between two points located 2 m apart. the tensile force in the wire is 250n, if its density of steel is given by 7830 kg/m3 the fundamental frequency of vibration hz? ?
Answers: 3
question
Engineering, 06.07.2019 03:10
How to convert a friction to decimal ?
Answers: 1
question
Engineering, 06.07.2019 04:20
What is the fuid acceleration in vector form for the following velocity field? note i, j, and k are unit vectors. show all of your work.
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
English, 17.09.2020 14:01
question
Mathematics, 17.09.2020 14:01
question
English, 17.09.2020 14:01
question
Mathematics, 17.09.2020 14:01
question
Mathematics, 17.09.2020 14:01
question
Mathematics, 17.09.2020 14:01
question
Mathematics, 17.09.2020 14:01
question
Social Studies, 17.09.2020 14:01
question
English, 17.09.2020 14:01
question
Health, 17.09.2020 14:01
question
Mathematics, 17.09.2020 14:01
question
English, 17.09.2020 14:01
question
Mathematics, 17.09.2020 14:01
question
Mathematics, 17.09.2020 14:01
question
Mathematics, 17.09.2020 14:01
question
Mathematics, 17.09.2020 14:01
question
Mathematics, 17.09.2020 14:01
question
History, 17.09.2020 14:01
question
Physics, 17.09.2020 14:01
question
Mathematics, 17.09.2020 14:01
Questions on the website: 13722360