subject

A certain CS professor gives five-point quizzes that are graded on the scale: 5→A4→B3→C2→D1→E0→E5→A4→B3→C2→D1→E0→ E
Complete a program that accepts a quiz score as an input, and uses decision structures to calculate the corresponding grade. Do this by implementing the functions, below:
num_to_letter(num)
Given a numerical grade between 0 and 5, return the appropriate letter grade.
main()
Write a main() asks the user for a numerical score between 0 and 5, and prints out the letter grade. You must use your num_to_letter function as defined above.
Tip 1: Fractional scores are allowed, e. g. a score of "4.5" is a "B" grade, or "1.7" is an "E". So make appropriate comparisons in your conditions.*
Tip 2: Scores could possibly be less than 0, or greater than 5. Just assign it an ‘E’, or ‘A’ respectively.
Output
For example, if the score of 5 is entered, a letter grade of "A" is returned.
Enter a numerical score (0-5): 5
Grade is A

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:20
What is a point-in-time measurement of system performance?
Answers: 3
question
Computers and Technology, 23.06.2019 20:00
What multimedia system creates an immersive, real-life experience that the user can interact with?
Answers: 1
question
Computers and Technology, 24.06.2019 08:30
@josethesolis i need can anyone text me and follow me
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
When writing a business letter, how many times can you use the same merge field in a document? once once, unless using the address block feature unlimited it will depend on the type of document you choose
Answers: 1
You know the right answer?
A certain CS professor gives five-point quizzes that are graded on the scale: 5→A4→B3→C2→D1→E0→E5→...
Questions
question
History, 30.01.2020 22:48
Questions on the website: 13722360