Question: Write a program that reads 4 numbers from a user, save the numbers in a single-dimensional array, and sort the saved numbers in a descending

Write a program that reads 4 numbers from a user, save the numbers in a single-dimensional array, and sort the saved numbers in a descending order.

Assumed that the user makes mistakes at most once for the weight and once for the price while entering the data, i.e. he/she enters the correct value the next time right after being warned.

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!