If the script is run, it should tell you your letter grade based on the numeric percentage of your grade Investigate: See inside and change the value of grade on the first line and answer the following questions: Does the script work correctly for any values of grade? Which values DO work? Why does it not work for all values? Modify: Fix the code so that it will tell you if you got an A (90 or higher), a B (80-89), or "you got a C or less" (below 80). Add additional code so the program will tell you if you got an A or B or C or D or if you failed. Add additional code to ask for the numeric percentage.
Code from a presentation by Colleen Lewis to CSTA CA chapters.