The kidneys of a healthy adult made filtrate at a steady rate all day, but the share taken back changed with what the person drank. The day is split into six blocks of four hours. You will find the urine made in each block, the total for the day, and the block with the most urine. Then the program draws a bar for each block.
The idea. The urine in a block is the filtrate times the part that is not taken back: filtrate * (100 - taken_back) / 100.
Your tasks.
urine to the litres of urine made in each block, rounded to 3 decimal places.total to the urine for the whole day, rounded to 2 decimal places.wettest to the name of the block with the most urine.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…