Skip to content
MathsGenie logo
Quick links
Open app

Course home

  1. IGCSE
  2. Computer Science Edexcel
  3. Question bank

Operators

EasyMedium
12
Question 2

Maya is the operations manager of a local delivery service.

Drivers can earn a performance rating bonus ("Gold Reward" or "Silver Reward") at the end of each week based on the number of deliveries they completed and their average customer rating.

Performance Reward Conditions

ConditionOutput
Deliveries is more than 80 OR average customer rating is at least 4.8"Gold Reward"
Deliveries is 50 or more AND average customer rating is at least 4.2"Silver Reward"
Any other combination"No Reward"

Below is an incomplete Python program that calculates the reward tier.

deliveries = int(input("Enter weekly deliveries: "))
rating = float(input("Enter average customer rating: "))

# Complete the conditional statement below
if ________:
    print("Gold Reward")
elif ________:
    print("Silver Reward")
else:
    print("No Reward")

Amend the code by writing the corrected, completed standard Python conditional statements to replace the placeholders.

[4]

Operators Questions

  1. IGCSE
  2. /Computer Science
  3. /Operators