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
Get step-by-step solutions from verified subject matter experts
