The arcade's top-five board is already in order, best first.When someone finishes a game I want their score slotted intothe right place, everyone below pushed down one, and the lastplace falling off. Do not sort the whole board again.Write your requirements list before you write any code. Input, calculate, output, and anything you had to decide for yourself.
1. Ada 980 2. Bo 870 3. Cy 750 4. Dee 620 5. Eli 510Kai scores 800: place 3Lu scores 400: not on the board 1. Ada 980 2. Bo 870 3. Kai 800 4. Cy 750 5. Dee 620Kai's 800 lands in third; Cy and Dee move down and Eli drops off. Lu's 400 changes nothing.
Your requirements list and your program file, named cc-new-high-score.