You will add the sound levels of several machines and follow the dust of a chimney through devices in series.
The idea. A level in decibels stands for an intensity of times the faintest sound. Add the intensities, then change back: . A device that removes a fraction lets through.
Your tasks.
total_level. It takes a list of levels in dB and gives the level of all of them together.dust_left. It takes a mass of dust and a list of removal fractions and gives the mass that escapes.largest_number. It gives the largest number of equal machines of level one that stay at or below limit.Run your code once to unlock the worked solution.
Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…