Skip to content

Course home

Constructs

Constructs

EasyMedium
1234
Question 4

A local fitness centre tracks members' progress.

They need a computer program to monitor:

  • the number of workouts attended this month
  • the average recovery score (out of 100)

Fitness and Recovery Conditions Table

ConditionOutput message
Workouts attended is at least 15 AND average recovery score is at least 80Superb fitness level achieved
Workouts attended is at least 10 AND average recovery score is at least 70Good progress made this month
Workouts attended is under 4 OR average recovery score is under 50Support session needed
All other inputsMaintain current routine

Below is an incomplete Python program designed to implement this logic:

# Program to determine fitness status
workouts = int(input("Enter workouts attended: "))
recovery = int(input("Enter average recovery score: "))

# Complete the code below to implement the decision-making logic

Amend or complete the code by writing the conditional (if-elif-else) structure that produces the correct outputs based on the table.

[4]
Markscheme

Constructs Questions

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

18 exam-style questions on Edexcel IGCSE Computer Science Constructs. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank