Question: Question 1 ( 1 mark ) : Write a program to ask the user to enter a series of integers, ending with a - 1

Question 1(1 mark): Write a program to ask the user to enter a series of integers, ending with a -1. Sort the list of numbers and then print them out in ascending order along with their total.
Question 1(1 mark): Write a program to ask the user to enter a series of integers, ending with a -1. Sort the list of numbers and then print them out in ascending order along with their total.
REQUIREMENTS
Your program must use a list to store the numbers.
The user input is always correct (input verification is not required).
Your code must be based only on the materials covered in weeks 1 to 10 of the course.
Your output must appear exactly like the following example (the text in bold indicates the user input).
Sample Output:
Enter your integers (-1 to end)
Integer 1: 7
Integer 2: 2
Integer 3: 8
Integer 4: 5
Integer 5: -1
Your sorted list is 2578
Your total is 22
 Question 1(1 mark): Write a program to ask the user to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!