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, 22.06.2019 11:00
Which law requires employers to provide safe working environments for their employees? a. civil rights act b. fair labor standards act c. occupational safety and health act d. wagner act
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
When working with a team you should always do the following, except? question 3 options: be dependable and trustworthy be sensitive to others feelings do your fair share critique members of the group
Answers: 2
question
Computers and Technology, 23.06.2019 10:00
How do i delete my account on this because i didn't read this agreements and also i put age at xd
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
1. which of the following statements are true about routers and routing on the internet. choose two answers. a. protocols ensure that a single path between two computers is established before sending packets over it. b. routers are hierarchical and the "root" router is responsible for communicating to sub-routers the best paths for them to route internet traffic. c. a packet traveling between two computers on the internet may be rerouted many times along the way or even lost or "dropped". d. routers act independently and route packets as they see fit.
Answers: 2
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
Mathematics, 03.03.2020 02:43
Questions on the website: 13722363