Question: use repl.it or python3 to write these including the optional one. Write a utility to convert raw scores into letter grades 1. Write a program
use repl.it or python3 to write these including the optional one.
Write a utility to convert raw scores into letter grades
1. Write a program to prompt the user to enter a raw score as a decimal (float) between 0.0 and 1.0. If the score is out of range, print an error message. If the score is between 0.0 and 1.0, print a grade using the following table:
Score Grade
>= 0.9 A
>= 0.8 B
>= 0.7 C
>= 0.6 D
< 0.6 F [add a personalized statement of encouragement]
Your program should indicate whether the input is bad with Your Name reports data is in incorrect format
Hint: try a nested conditional structure
2. Run the program repeatedly to test the various different values for input to check to see if your program handles bad input correctly.
Ex.
Enter score: 0.95
A
Enter score: perfect
Your Name reports data is in incorrect format
Enter score: 10.0
Your Name reports data is in incorrect format
Enter score: 0.75
C
Enter score: 0.5
F, a personalized statement of encouragement
3. Add comments to your program (using #) that explain what the key lines of your program are doing
4. Optional: to add greater realism and relevance for this class, add plus and minus grades, with a minimum of ._4 for the whole grades and ._7 for the plus grades (the ._0 grades are now minus grades) [earns up to +10% on lab grade]
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
