need help in Python computer work

Oct 18th, 2015
DotaCN
Category:
Computer Science
Price: $15 USD

Question description

For this assignment, you'll be working with lists and user input. When you run your program, it should behave like the program below:

Enter a number 1
Enter a number 2
Enter a number 3
Enter a number 3
Number already entered!
Enter a number bummer
That is an invalid number
Enter a number 4
Enter a number 9
Enter a number 8
Enter a number 7
Enter a number 6
Enter a number 5
Enter a number 11
The largest number you entered was 11
The smallest number you entered was 1
The average of all the numbers you entered was 5.6
The numbers you entered, in decreasing order, are
[11, 9, 8, 7, 6, 5, 4, 3, 2, 1]

In other words, your program will need to ask the user to enter 10 numbers and store them inside of a list. If the user enters a non-number, you must display a message and keep on inputting numbers. If the user enteres a number that is already in the list, you should display an error and keep on inputting numbers.

Once all 10 numbers have been entered by the user, you will need to print out information about the numbers the user input. You will need to display the largest number, the smallest number, the average, and the list of numbers in decreasing order.


Tutor Answer

(Top Tutor) Daniel C.
(997)
School: UIUC
PREMIUM TUTOR

Studypool has helped 1,244,100 students

8 Reviews


Summary
Quality
Communication
On Time
Value
kevin12622
Dec 6th, 2016
" Goes above and beyond expectations ! "
kiln82
Nov 27th, 2016
" awesome work thanks "
ashleyisgod
Nov 23rd, 2016
" Top quality work from this guy! I'll be back! "
likeplum4
Nov 14th, 2016
" Excellent work as usual "
Molly_Moon
Oct 31st, 2016
" AMAZING as always! "
kpcutie
Oct 22nd, 2016
" Excellent job "
Hemapathy
Oct 9th, 2016
" all I can say is wow very fast work, great work thanks "
pmallory
Sep 30th, 2016
" Totally impressed with results!! :-) "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1825 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors