Write a C++ program that allows a cosmetic company to keep track of six different products: lipstick, eyeshadow, mascara, eyeliner, 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.
Write a C++ program that allows a cosmetic company to keep track of six different products: lipstick, eyeshadow, mascara, eyeliner, 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.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images