Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Chips and Salsa Write a program that lets a maker of chips and salsa keep track of sales for five differ - ent types of

Chips and Salsa
Write a program that lets a maker of chips and salsa keep track of sales for five differ- ent types of salsa: mild, medium, sweet, hot, and zesty. The program should use two parallel 5-element arrays: an array of strings that holds the five salsa names and an array of integers that holds the number of jars sold during the past month for each salsa type. The salsa names should be stored using an initialization list at the time the name array is created. The program should prompt the user to enter the number of jars
82. int for
table[10];
(int x =0; x <20; x++)
{
cout << "Enter the next value: "; cin >> table[x];
}
83. int
84. int
hours[3]=8,12,16; numbers[8]={1,2,,4,,5};
sold for each type. Once this sales data has been entered, the program should produce a report that displays sales for each salsa type, total sales, and the names of the highest selling and lowest selling products.
Input Validation: Do not accept negative values for number of jars sold.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Michael V. Mannino

3rd Edition

0071107010, 978-0071107013

More Books

Students also viewed these Databases questions