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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!