Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Collaboration is OPTIONAL for this programing assignment. You are allowed to work with one or two other classmates. You may either turn in the weblink
Collaboration is OPTIONAL for this programing assignment. You are allowed to work with one or two other classmates. You may either turn in the weblink to a single REPL for the 2 or 3 of you but be sure to include all of your names as comments in order for each of you to get credit. Or you can each turn in a separate REPL but include all of your names in comments. Reading code that you haven't written is a skill you must develop. Many times you are correcting this code that you didn't write so you have to 1) read the code, 2) find the errors, and 3) correct them. You are going to correct a program that has several errors in it (specifically, one error per function). - You should begin by looking at what the expected output of the program should be for various inputs. - Then, run the code and identify the error that occurs. - Next, go to the code and correct the mistakes. - Run the code again to see if you did it correctly. Be sure to test with different inputs. - Record the error you found in the comment at the top of the function. - Repeat this until you have found all 4 errors. When the program is correct, it should have output like this: Enter 3 test scores: Enter your test score >100 Enter your test score >90 Enter your test score >91 Wow! You scored 90 or above on all your exams! Keep up the As! Your test average is 93.6666666666667 You earned an A Or with different input: Enter 3 test scores: Enter your test score > 100 Enter your test score >89 Enter your test score > 91 Your test average is 93.33333333333333 You earned an A Or: Enter 3 test scores: Enter your test score >61 Enter your test score >75 Enter your test score >88 Your test average is 74.6666666666667 You earned an C Instructions - Fix the code in REPL so that the program works and submit the assignment. - As you identify and fix errors, note them in the comments of the program
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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