Practice

Energy Efficiency Rating

2023/Feb/Mar·Variant 2·Q6(b)·[2 marks]
EASYSelection

Read an appliance's energy efficiency as an integer percentage. If efficiency is 92 or over, output A-rated. If below 92, output Not A-rated.

Source: 2023 Feb/Mar Variant 2 Q6(b)

Input: A single integer — the efficiency percentage. Output: A-rated or Not A-rated.

Example:

Input:  95
Output: A-rated
Premium is coming soon. All grading features are currently unlocked.

Sample Test Cases

Test 1: Above threshold
Inputs: 95
Expected: A-rated
Test 2: Exactly 92 — boundary
Inputs: 92
Expected: A-rated
Test 3: Below threshold
Inputs: 80
Expected: Not A-rated
Press Ctrl+Enter to run your code
or Ctrl+Shift+Enter to grade