An automated logistics drone is loaded with cargo packages. The operator must load cargo packages one by one onto the drone until the maximum payload capacity is reached or exceeded.
Write a program in Python or exam-style pseudocode that asks users to enter the maximum payload capacity and then tracks the remaining capacity as individual packages are loaded.
The program should:
Optimal load reached.Overloaded by followed by the positive difference (how much the capacity was exceeded).You should use meaningful variable names and correct syntax/structure 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.