Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ llel uutermine which sauce was the highest selling and the lowest selling product. Juue3. IL VIII Validations: 1. The files can be opened 2.
C++
llel uutermine which sauce was the highest selling and the lowest selling product. Juue3. IL VIII Validations: 1. The files can be opened 2. No negative values for the amount of sales for each sauce. This should be a loop asking for the input again. Requirements: 1. When prompting for the amount sold of a sauce, the name of the sauce must be used in the prompt. 2. Table output should have evenly spaced columns. 3. Where there is currency being displayed, it must be formatted with 2 decimal places and a $. 4. Method to display the table of output. 5. Method to calculate the total of overall sales, returns the amount. 6. Method to get the inputs from the user for the amount sold of each sauce. 7. Method to determine which is the highest and lowest product sold. This assignment will require the use of three arrays, which will be used in parallel. Create a program that keeps track of the sales of BBQ sauces for a company. The company makes several different types of sauces, Original, Sticky Sweet, Spicy, Sweet Heat, Hickory Bourbon and Smokey Mesquite. One array will contain the names of the different BBQ sauces. This array will be initialized from a text file with the 6 different names. A second array will be used for the price of each bottle of BBQ sauce; this will also be initialized from a file. The two files can be different files. The third array will be used to store the amount sold of each type of sauce. The program will then prompt the user for how many of each sauce has been sold. Once all the data is entered a report is created that displays each of the sauce types with the total amount sold and the total sales for each of the sauces. This output should be in a table format. The program will also calculate the overall total of sales for all of the sauces. It will then determine which sauce was the highest selling and the lowest selling product. Validations: 1. The files can be opened 2. No negative values for the amount of sales for each sauce. This should be a loop asking for the input again. Requirements: 1. When prompting for the amount sold of a sauce, the name of the sauce must
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