Question
Step 1: Requirementsparallel arrays C++ program: You need to store sales for seven differnet types of salsa: mild, medium, hot, sweet, fruit, verde, and zesty.
Step 1: Requirementsparallel arrays |
C++ program: You need to store sales for seven differnet types of salsa: mild, medium, hot, sweet, fruit, verde, and zesty. You will need two parallel seven element arrays. An array of strings to hold the salsa names and an array of integers holding the number of jars sold during the past month for each type of salsa. Create a string array, and initialize it with the salsa types. The program should prompt the user to enter the number of jars sold for each type. Use input validation with a loop to ensure that negavie values are not input. Once the data is input, the program should display a report that shows sales for each salsa type, total sales (total number of jars sold), and the names of the highest and lowest selling products. Sample output from program Jars sold last month of mild: 11 Jars sold last month of medium: 32 Jars sold last month of hot: 37 Jars sold last month of sweet: 24 Jars sold last month of fruit: 34 Jars sold last month of verde: 76 Jars sold last month of zesty: 56 Salsa Sales Report Name Jars Sold _________________ mild: 11 medium: 22 hot: 37 sweet: 24 fruit: 34 verde: 76 zesty: 56 Total Sales: 270 High Seller: verde Low Seller: mild Press any key to continue. |
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