Boss: earlier date, then a grade
Level 2: Types. Paper 2 mixes the new types in one algorithm. This one uses a DATE comparison and a CASE range.
Read a DATE, then an integer mark.
First output early if the date is before 01/01/2010, otherwise later.
Then output the grade for the mark: 75 TO 100 → merit, 40 TO 74 → pass, otherwise fail.
Example: 15/06/2008 then 80 prints:
early
merit
- Previous: Which type is it?
- Next: BYVAL leaves the caller alone
- AS & A Level Path