Students keep asking me what letter a score is and I keepdoing it in my head. Type a percent, get the letter. Andplease make it agree with the syllabus, because last timesomeone wrote one that rounded 89.5 up and I heard about itfor a week.Write your requirements list before you write any code. Input, calculate, output, and anything you had to decide for yourself.
Score: 89.5
That is a B.A program that says A here is also correct, if your requirements list says you chose to round. One that has not thought about it is not correct, whichever letter it prints.
Check every band before you submit — a score in the C range and one in the F range will both catch an ordering mistake that 89.5 hides.
Your requirements list and your program file, named cc-letter-grade.