Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write in C++ Step 1: Write a program that lets a maker of chips and salsa keep track of their sales for ve different types

Write in C++

Step 1:

Write a program that lets a maker of chips and salsa keep track of their sales for ve different types of salsa they produce: mild, medium, sweet, hot, and zesty. It should use two parallel ve-element arrays: an array of strings that holds the ve 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 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.

Step 2:

Add the third array to your program to record the price of a jar of each salsa. Make the program calculate not only the number of jars, but the revenue for each salsa. Display the salsa with the highest revenue.

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

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago