subject

A professor gives 100-point exams that are graded on the scale 90-100: A, 80-89: B, 70-79:C, 60-69: D, <60: F. Write a Python function, grade(score), that takes a score as an input parameter and returns the corresponding letter grade. You are only allowed to use ONE if-statement with ONE elif or else for this problem. Write a main() function that prompts the user for a score, then calls your grade() function and finally prints the grade. Hint: think about how chr() could be used.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:00
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings starting from index 0. for each match, add one point to userscore. upon a mismatch, exit the loop using a break statement. assume simonpattern and userpattern are always the same length. ex: the following patterns yield a userscore of 4: simonpattern: rrgbryybgy userpattern: rrgbbrybgy
Answers: 2
question
Computers and Technology, 23.06.2019 04:00
In a word processing program, such as microsoft word, which feature to you choose the desired picture enhancement?
Answers: 2
question
Computers and Technology, 23.06.2019 09:20
How to print: number is equal to: 1 and it is odd number number is equal to: 2 and it is even number number is equal to: 3 and it is odd number number is equal to: 4 and it is even number in the console using java using 1 if statement, 1 while loop, 1 else loop also using % to check odds and evens
Answers: 3
question
Computers and Technology, 23.06.2019 12:30
How is the brightness of oled of the diaplay is controled
Answers: 1
You know the right answer?
A professor gives 100-point exams that are graded on the scale 90-100: A, 80-89: B, 70-79:C, 60-69:...
Questions
Questions on the website: 13722362