Reference no: EM132356164
Question
A teacher wants a program to give extra points to students who fail a test. Use 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