Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Filename: assign 1-10.py Top Scores Program: The Top Scores Program uses list methods to create and maintain a list of the user's best scores

image text in transcribed

2. Filename: assign 1-10.py Top Scores Program: The Top Scores Program uses list methods to create and maintain a list of the user's best scores for a game. 1. The program reads the scores from cmd. The number of scores is unknown. 2. Show the list of scores and inform the player of how many scores they have entered through the cmd. 3. Show the following: Lowest score: Highest score: Average of all scores: (formatted to one decimal point) 4. Sort the list of scores from lowest to highest. Print the sorted list. 5. Sort the list of scores from highest to lowest. Print the sorted list. H:>python C:\Users aslsabbaghpourhokma\Documents\IT2431\Module1\assign1-10.py 20 10 2 30 The list of scores is: (20, 10, 2, 30] You have 4 top scores. Lowest score: 2 Highest score: 30 Average of all scores: 15.5 Your scores in lowest to highest: [2, 10, 20, 30] Your scores in highest to lowest: [30, 20, 10, 2] H:\>python C:\Users aslsabbaghpourhokma\Documents\IT2431\Module1\assign1-10.py 10 15 5 7 3 12 The list of scores is: [10, 15, 5, 7, 3, 12] You have 6 top scores. Lowest score: 3 Highest score: 15 Average of all scores: 8.67 Your scores in lowest to highest: [3, 5, 7, 10, 12, 15] Your scores in highest to lowest: [15, 12, 10, 7, 5, 3]

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

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions