Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PROBLEM 3 Three figure skaters, Jean, Kayla and Connie, compete in a meet. Each skater receives 4 scores. Write a program to do the following
PROBLEM 3 Three figure skaters, Jean, Kayla and Connie, compete in a meet. Each skater receives 4 scores. Write a program to do the following (a) Ask the user to enter 4 scores for Jean. Store the scores in a list. Display the list. (b) Ask the user to enter 4 scores for Kayla. Store the scores in a list. Display the list. (c) Ask the user to enter 4 scores for Connie. Store the scores in a list. Display the list. (d) Create a list to store the three score lists. This is a list of lists that contains three elements: Jean's score list, Kayla's score list, Connie's score list. Display this list of lists (e) Use a set of nested for loops to add 1 extra point to every score of every skater in the list of lists created in part (d) (f) Display the modified list of lists. Each score should be 1 point higher than before. (g) For each skater in the list of lists, sort her 4 scores in ascending order. (h) Display the modified list of lists. Each skater's 4 scores should be in ascending order. The following is an example. Please enter Jean's scores one by one, Enter a score // Enter a score: /4 Enter a score /5 Enter a score: /2 Jean's scores: [77.0, 74.0, 75.0, 72.0] Please enter Kayla's scores one by one. Enter a score: 81 Enter a score: // Enter a score: 80 Enter a score: /9 Kayla's scores: [81.0, 77.0, 80.0, 79.0] Please enter Connie's scores one by one. Enter a score: 69 Enter a score: 74 Enter a score: 72 Enter a score: 70 Connie's scores: [69.0, 74.0, 72.0, 70.0] CSC121 Lab 06 Page 4 All scores: [[77.0, 74.0, 75.0, 72.0], [81.0, 77.0, 80.0, 79.0], [69.0, 74.0, 72.0, 70.0]] All scores after extra point: [[78.0, 75.0, 76.0, 73.0], [82.0, 78.0, 81.0, 80.0], [70.0, 75.0, 73.0, 71.0]] All scores after sorting: [173.0, 75.0, 76.0, 78.0], [78.0, 80.0, 81.0, 82.0], [70.0, 71.0, 73.0, 75.0]]
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