Answer to Question #240181 in Physics for ggfh

Question #240181

A survey is being carried out which involves reading and recording sound levels near a busy road

junction. Once all the data are collected, they are input manually into a computer. A sound level

of 0 decibels (0 dB) is input to indicate the end of the data.

Write an algorithm, using pseudocode or a flowchart, which:

• inputs all the sound levels

• after a sound level of 0 is input, outputs the following:

o average sound level

o highest recorded sound level.


1
Expert's answer
2021-09-21T18:20:50-0400
SoundLevel=input(SoundLevelsList)
SoundLevelAvg=average(SoundLevel)
SoundLevelMax=max(SoundLevel)
if SoundLevel=0
print("The average sound level is ", SoundLevelAvg, " db. The highest recorded sound level is ", SoundLevelMax)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog