Question
Make Up Sales Write a program that allows a cosmetic company to keep track of six different products: lipstick, eye shadow, mascara, eye liner, foundation,
-
Make Up Sales
Write a program that allows a cosmetic company to keep track of six different products: lipstick, eye shadow, mascara, eye liner, foundation, and rouge.The program should use two-parallel 6-element arrays: an array of strings that holds the product names and an array of integers that holds the number items in each category sold during the last week. The product names should be stored using an initialization list at the time the array is created. The program should prompt the user to enter the number of each product sold. Once the sales data has been entered, the program should display sales for each product, total sales, and the names of the highest and lowest selling items.
Input Validation: Do not accept negative values for the number of items sold.
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