Question: # Initialize an integer for list size here. # Initialize list here. # Write a loop to get batting averages from user and add to
# Initialize an integer for list size here.
# Initialize list here.
# Write a loop to get batting averages from user and add to list.
# String version of batting average input by user.
averageString inputEnter a batting average:
# Use this variable to store the batting average input by user.
battingAverage floataverageString
# add value to list.
# Use these variables to store the minimim and maximum batting averages.
# Assign the first element in the list to be the minimum and the maximum.
min averages
max averages
# Start out your total initialized to
total
# Write a loop here to access list values starting with averages
# Within the loop test for minimum and maximum batting averages.
# Also accumulate a total of all batting averages.
# Calculate the average of the averages.
# Print the averages stored in the averages list.
# Print the maximum batting average, minimum batting average, and average batting average.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
