1. Engineering
  2. Computer Science
  3. 3 there is a store to sale laptops from monday...

Question: 3 there is a store to sale laptops from monday...

Question details

3. There is a store to sale laptops. From Monday to Saturday, here are the numbers of the laptops they sold for each day:sale laptops. From Monday to Saturday, here are the numbers of the laptops they sold for each day:

10    8     14     16    18     37

The store manager wants you to write a program that display the day sales in descending order, as well as in their original order.

Requirements:

Please define two arrays in your program

Arr: an array of integers to hold the day sales in original order;

PtrArr: an array of pointers that can be used to display the contents of Arr in descending order, without sorting Arr

Please add comments in your program

Answer: (you can copy your executable codes here)

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution