Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Python program for each of the problems in this lab. Please use PyCharm to type and test your programs. Submit the Python

  

Write a Python program for each of the problems in this lab. Please use PyCharm to type and test your programs. Submit the Python files to Blackboard for credit. In this lab, you should submit 4 Python files, one for each problem. PROBLEM 1 A teacher wants a program to give extra points to students who fail a test. Write a Python program to do the following: (a) Ask the user to enter 5 test scores. Store the scores in a list. Display the list. (b) Copy all 5 test scores to another list. Use a loop to examine each test score in the new list. If the score is below 60, add 10 extra points to the score. Display the list. (c) Compare the old score and new score of each student. If the old score and new score are different, display the two scores. The following is an example. Enter a test score: 45 Enter a test score: 77 Enter a test score: 88 Enter a test score: 52 Enter a test score: 90 All scores: [45.0, 77.0, 88.0, 52.0, 90.0] Students who scored below 60 get 10 extra points. All scores: [55.0, 77.0, 88.0, 62.0, 90.0] Students whose scores have changed: Old score: 45.0 New score: 55.0 Old score: 52.0 New score: 62.0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Auditing a risk based approach to conducting a quality audit

Authors: Karla Johnstone, Audrey Gramling, Larry Rittenberg

9th edition

9781133939160, 1133939155, 1133939163, 978-1133939153

More Books

Students also viewed these Programming questions

Question

What is the saver's credit and who is eligible to receive it?

Answered: 1 week ago