You will write three small functions that a mission planner uses to pack water for a space station.
The idea. A crew uses crew × water per person each day. If a percent of the water is recycled, only the rest must be new: water × (100 − percent) ÷ 100.
Your tasks.
water_per_day, return the kg of water a crew of crew people uses in a day.new_water, return the kg of new water needed when percent of water kg is recycled.for_stay, return the new water needed for a whole stay of days days.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…