This assignment will give you practice with your control structures. The user will either enter a number, or enter a letter representing the grade they achieved. Use a textbox to get user input.
If the user enters a number, you should display the corresponding grade in an alert box or on the web page
| Number Range | Grade Output |
| 88 – 100 | A |
| 80 – 87 | B |
| 68 – 79 | C |
| 60 – 67 | D |
| 0 – 59 | F |
| Numbers that are less than 0 or greater than 100 | “Invalid number for a grade”. |
*Note: Assume if a number is entered, the number will always be a whole number
If the user enters something that is not a number, you need to check if it’s a valid letter grade. If it is, then display the correct message.
| Grade Input | Message Output |
| A | Excellent job |
| B | Good Work |
| C | You need to put in more effort |
| D | Uh oh, you should be reading and getting assignments in |
| F | Please see the instructor |
| All other string input | Invalid grade |
Resources
When finished, submit all necessary files in a zipped folder