A drone delivery service is loading packages onto a cargo drone. The drone has a maximum payload capacity. Several packages of varying weights will be loaded one by one until the payload capacity is reached or exceeded.
Write a program in Python, pseudocode, or any high-level programming language that tracks the remaining payload capacity of the drone as packages are loaded.
The program must:
Capacity reachedOverloaded by followed by the excess weight (the absolute difference between the remaining capacity and 0)You should use meaningful variable names and correct programming syntax in your answer.
298 exam-style questions on AQA GCSE Computer Science Programming concepts. Each one has a worked solution and a mark scheme showing where the marks go.