A local fitness centre tracks members' progress.
They need a computer program to monitor:
| Condition | Output message |
|---|---|
| Workouts attended is at least 15 AND average recovery score is at least 80 | Superb fitness level achieved |
| Workouts attended is at least 10 AND average recovery score is at least 70 | Good progress made this month |
| Workouts attended is under 4 OR average recovery score is under 50 | Support session needed |
| All other inputs | Maintain 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.
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.