Seven appliances are switched on one by one on a circuit at . You will make the program find the total current after each one, the first appliance that takes the current over , and the power still free on the circuit with all but the last one on. Then it draws the currents as bars, with the fuse as a line.
The idea. In parallel the powers add up, and . The circuit can carry at most .
Your tasks.
I, the total current after each appliance.first_over, the name of the first appliance that takes the current over .spare, the power in watts still free on the circuit with all but the last appliance on.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…