Skip to content

Course home

Programming concepts

Programming concepts

EasyMediumHard
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
Question 49

Write a Python program that calculates the estimated battery energy consumed (in watt-hours, Wh) by a delivery drone during a flight lasting between 10 and 45 minutes.

Your program should:

  • keep asking the user to enter the flight duration in minutes until they enter a value that is between 10 and 45 (inclusive)
  • calculate the baseline energy consumed by multiplying the duration by 4.8
  • ask the user if the drone is carrying a payload heavier than 1 kg (expect the user to enter yes if it is)
  • if it is carrying a heavy payload, multiply the calculated baseline energy by 1.35
  • output the final estimated energy consumed.

You should use meaningful variable name(s), correct syntax and indentation in your answer.

[8]
Markscheme

Programming concepts Questions

  1. GCSE
  2. /Computer Science
  3. /Programming concepts

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.

Question bank