Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For C++ I keep getting errors You will need to design an application that will p

ID: 3859603 • Letter: F

Question

For C++ I keep getting errors

You will need to design an application that will prompt a user for sales values for seven different types of salsa: mild, medium, hot, sweet, fruit, verde, and zesty. You will use two parallel seven element arrays. One array will be an array of strings to hold the salsa names and one will be an array of integers holding the number of jars sold during the past month. Sample output from program Jars sold last month of mild : 11 Jars sold last month of medium: 22 Jars sold last month of hot : 33 Jars sold last month of sweet : 44 Jars sold last month of fruit : 55 Jars sold last month of verde : 66 Jars sold last month of zesty : 77 Salsa Sales Report Name Jars Sold _________________ mild : 11 medium: 22 hot : 33 sweet : 44 fruit : 55 verde : 66 zesty : 77 Total Sales: 308 High Seller: zesty Low Seller : mild Press any key to continue . . .

Explanation / Answer

#include <iostream>

#include <string>

#include <bits/stdc++.h>

using namespace std;

int main()

{

int salesOfLastMonth[]={11,22,33,44,55,66,77};

string salsaTypes[]={"mild","medium","hot","sweet","fruit","verde","zesty"};

int i=0;

for(i=0;i<7;i++)

{

cout<<" jars sold last Monthof "<<salsaTypes[i] <<" are "<<salesOfLastMonth[i]<<endl;

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote