Paper 2 scenario practice
Cambridge IGCSE 0478 Paper 2 ends with a 15-mark scenario question where you write a complete program from a written brief. Solutions can be given in pseudocode (recommended for most candidates), Python, Visual Basic, or Java. Solutions in any other language receive zero marks.
Available now
Marks above the class average
Warm-upRead 30 students' names and marks; compute the average; output names of students above the average.
Age validation
StandardRead up to 20 ages, rejecting any < 0 or > 120; report count valid and average.
Linear search of student IDs
StandardSearch a 1D array of student IDs for a target; report whether found.
Sort and report top scores
StandardSort an array of 10 scores descending using bubble sort; output the top 3 with rank labels.
Temperature conversion subroutine
StandardUse a FUNCTION to convert °C to °F; main program reads 5 temperatures and outputs converted values.
Library — 2D array of books
IntermediateTrack 5 books × 4 attributes (title, author, year, copies). Search by title, output the matched book's details.
Password validation
IntermediateRead a password; check it meets three criteria (length ≥ 8, has digit, has uppercase). Report which criteria failed.
File-based score statistics
IntermediateRead scores from a text file using EOF-controlled reading; compute statistics; write summary to a different file.
Menu-driven item tracker
IntermediateLoop showing menu (1=add, 2=view, 3=quit) until user picks quit. Use CASE OF with OTHERWISE for invalid input.
Capstone — school report system
CapstoneRead marks for 5 students with validation, sort using paired-array bubble sort, output top performers, write report to file.