Question
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.
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)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started