Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3. What is the output of the following program of the inputs are: 65, 75, 86, 94, and 55? def main (): scorel =
3. What is the output of the following program of the inputs are: 65, 75, 86, 94, and 55? def main (): scorel = int (input ("Enter score #1: ")) score2 = int (input ("Enter score #2: ")) score3 = int (input ("Enter score #3: ")) score 4 int (input ("Enter score #4: ")) score5 int (input ("Enter score #5: ")) average = avg (scorel, score2, score3, score 4, score5) print (" Average ", average) print (" Letter grade is: ", Letter grade (average)) def avg (s1, s2, s3, s4, s5): sum s1 s2 + s3 +s4 + s5 = average = sum/5. return = rage def Letter grade (a): if a > 90: wwwwaar wwwww else: return 'A' elif a >= 80: return 'B' umm elif a >= 70: return 'C' elif a >= 60: return 'D' main () return 'F' Output:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
The program you provided has syntax errors and formatting issues so it needs some corrections before ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started