A class grade book

The problem

Build a command-line program that keeps the marks of students: add a mark, show a student's average, list the class ranked by average and report every wrong command clearly.

Requirements

Technologies

Step by step

  1. Write down the commands and the rules, and list the nouns and verbs.
  2. Write the GradeBook class and test add and average with a few fixed calls.
  3. Add the exceptions for bad marks and unknown names.
  4. Write the command loop with explode and a switch, and add the rank report.

Expected result

A reliable program where a wrong command prints an error message and never damages the data.

How it is evaluated

Ways to improve it