Answered step by step
Verified Expert Solution
Link Copied!

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 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Building Java Programs A Back To Basics Approach

Authors: Stuart Reges, Marty Stepp

5th Edition

013547194X, 978-0135471944

More Books

Students also viewed these Programming questions

Question

Provide detailed no-arbitrage arguments for expression (6.5).

Answered: 1 week ago

Question

What is the output of the following program?

Answered: 1 week ago