IN C++ choose a type of product to sell (food, apparel, electronics, cosmetics, housewares, etc.). Create a program whic

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

IN C++ choose a type of product to sell (food, apparel, electronics, cosmetics, housewares, etc.). Create a program whic

Post by answerhappygod »

IN C++ choose a type of product to sell (food, apparel,electronics, cosmetics, housewares, etc.). Create a program whichloads 4 parallel arrays with 20 items each. Use your own data. Donot replicate data which I post, nor use data from another student.Make at least 4 categories, for example, if you were categorizinganimals, then you would use M for mammal, R for reptile, F forfish, and B for bird. Store the following 4 parallel arrays inmain(). Populate them with data using initializer lists.
Requirements: Store your data in parallel arrays: Create thefollowing functions:
Product (setw(20)) Price (setw(10)) Qty (setw(10))Category(setw(10))Ext. Price (setw(10))
xxxxxxxxxxxxxxxxxxxx 9999999.99 9999999999 xxxxxxxxxx9999999.99
Average Sales: 9999999.99 // NOTE: This is generated byfindTotalSales()
Total Sales: 9999999.99 // NOTE: This is generated byfindAverageSales()
Use a menu which will allow you to do the following with thedata (Have this loop with a sentinel to continue or stop as thelast menu item or 0):
Output: Show all reporting function output includingdisplayReport(), priceReport(), categoryReport() andsortByNameReport(), sortByPriceReport().
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply