Question: USING C++ Programming Project 5: The structure ADT and the function arguments with structure Reference: sections 8.3, 11.5 & prog 8-4, 8-5, 11-4, 11-6 A.
USING C++
Programming Project 5: The structure ADT and the function arguments with structure
Reference: sections 8.3, 11.5 & prog 8-4, 8-5, 11-4, 11-6
A. Create arrays of 15+ products including product IDs, unitprices, quantities sold, and sales of each product. The products must be defined in 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 arrays 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 but not limited to: original data (arrays of structures), sorted arrays, and the total sales and total units sold.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
