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 18:40
Johnson enterprises uses a computer to handle its sales invoices. lately, business has been so good that it takes an extra 3 hours per night, plus every third saturday, to keep up with the volume of sales invoices. management is considering updating its computer with a faster model that would eliminate all of the overtime processing.
Answers: 2
question
Computers and Technology, 23.06.2019 20:40
Instruction active describing list features which statements accurately describe the features of word that are used to create lists? check all that apply. the tab key can be used to create a sublist. the enter key can be used to add an item to a list. the numbering feature allows for the use of letters in a list. the numbering feature can change the numbers to bullets in a list. the multilevel list feature provides options for different levels in a list.
Answers: 2
question
Computers and Technology, 24.06.2019 02:20
The first time a user launches the powerpoint program, which view is shown allowing the user to access recent presentations or create new presentations based on templates?
Answers: 1
question
Computers and Technology, 25.06.2019 01:00
Holly created a professional development plan to explore how she could advance from her entry-level position to the next step in her career. she has identified her current skills and the skills needed for the job she wants. what should she do now? a) ask a colleague for advice about work-life balance b) identify her areas for improvement c) plan a vacation before she begins her new job d) wait until a position opens before continuing her plan
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
Social Studies, 04.08.2019 14:00
question
Physics, 04.08.2019 14:00
question
History, 04.08.2019 14:00
Questions on the website: 13722361