Question
Using PYTHON do the following: Three gymnasts compete in a meet. Each gymnast receives four scores from the judges. These scores are averaged to give
Using PYTHON do the following:
Three gymnasts compete in a meet. Each gymnast receives four scores from the judges. These scores are averaged to give the gymnast their final score. Write a program to do the following:
A: Create three lists to store the scores for each gymnast.
B: Use three separate for loops to request from the user the four scores for each gymnast.
C: After each set of scores are stored in a list, combine the three lists into a nested list called scores. Now, the nested list named scores is a list of lists with three elements. The first element is the list of scores for the first gymnast, the second element is the list of scores for the second gymnast and the third element is the list of scores for the third gymnast.
D: Display the scores for the gymnasts and the average of each gymnast scores using a set of nested for loops. The outer for loop runs once for each gymnast and the inner for loop runs for each of the gymnasts four scores.
The following is an example. Enter scores for the first gymnast Score: 9.3 Score: 8.6 Score: 9.2 Score: 8.9 Enter scores for the second gymnast Score: 8.9 Score: 8.7 Score: 9.2 Score: 8.8 Enter scores for the third gymnast Score: 9.3 Score: 9.5 Score: 9.2 Score: 8.8 Scores for Gymnast: Score: 9.3 Score: 8.6 Score: 9.2 Score: 8.9 Average Score: 9.0 CSC121 Scores for Gymnast: Score: 8.9 Score: 8.7 Score: 9.2 Score: 8.8 Average Score: 8.9 Scores for Gymnast: Score: 9.3 Score: 9.5 Score: 9.2 Score: 8.8 Average Score: 9.2 Lab06 Page 5
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