Using a Sentinel Value
We could let the user keep entering the grades and when he’s done enter some special value that signals us that he’s done.
This special signal value is called a sentinel value.
We have to make sure that the value we choose as the sentinel isn’t a legal grade. (i.e.. can’t use 0 as the sentinel )