Question: C++ Problem a. Create one array of 15+ products including product IDs, unit prices, quantities sold, and sales of each product. The products may be

C++ Problem

a. Create one array of 15+ products including product IDs, unit prices, quantities sold, and sales of each product. The products may be defined in or input into an array of structure ADT.

b. Sort the above data and adding the sales of each product. You may use either bubble sort or selection sort in ascending or descending order on sales. The arguments of call function must include array of structure.

c. Print out product IDs, unit prices, quantities sold, and the sales of each product. Also print out the total units sold and the total sales.

d. Output should include original data (array of structures), sorted array, and the total sales and total units sold.

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!