Eight prize boxes, and each holds a number of points. Let aplayer pick a box and tell them what is inside. Players typewhatever they like, so it must not fall over when they picka box that is not there.Write your requirements list before you write any code. Input, calculate, output, and anything you had to decide for yourself.
abc, will still crash at int.Parse. That is fine for this challenge; numbers out of range are the job.Pick a box from 1 to 8: 5Box 5 holds 100 points.
Pick a box from 1 to 8: 9There is no box 9. The boxes are 1 to 8.Two real runs. Boxes 0, 9, and −2 all get the message; boxes 1 and 8 are both found.
Your requirements list and your program file, named cc-safe-lookup.