Year 8 practice challenges

Four longer programming challenges on 1D arrays, totaling, max/min and counting. Each challenge is on its own page. Try it yourself, then press Show solution.

Challenge 1

Weekly App Usage Analysis

Use a 1D list and loops to total, find the max and min, and count high-usage days — without sum(), max() or min().

1D arraytotal
Open challenge 1
Challenge 2

Student Quiz Score Analyzer

Loop through quiz scores to find the average, highest and lowest scores, and count how many students passed.

1D arrayaverage
Open challenge 2
Challenge 3

Weekly Weather Report

Use two parallel lists — days and temperatures — to find the hottest and coldest days, the average temperature, and pleasant days.

parallel arraysindexes
Open challenge 3
Challenge 4

Weekly Step Count Tracker

Use parallel arrays for weekdays and steps to total activity, find peak and lowest days, and count low-activity days.

parallel arraystotal
Open challenge 4