1. Engineering
  2. Computer Science
  3. using all includes just like the example below same details...

Question: using all includes just like the example below same details...

Question details
Using all includes just like the example below same details and everything make sure you use the stuff he uses
Programming Challenges 3. Chips and Salsa Write a program that lets a maker of chips and salsa keep track of sales for five differ- ent ty parallel S-element arrays: an array of strings that holds the five salsa names, and an array of in 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. Input Validation: Do not accept negative values for mamber of jars sold 4. Lareer than tt pes of salsa: mild, medium, sweet, hot, and zesty. The program should use two
Example:

Debug Team Dald Lake View Project Build Incredibuild x86 Local Windows Debugger . р (Global Scope) tPakbaz Arrays Practice 1 E//Matt Pakbaz 2 /1/28/2019 3 //Arrays class practice s otinclude<iostream> # include <string> #includeccstdlìb> //For rand | #include<ctime> //To seed the random number //For formatting 8 #includeciomanip> 10 using namespace std; //Function prototypes 12 void fillArrays (stringl], int[], int) 13 void printArray(const string[], const intt), int) 14 double calcAverage(int], int); 15 16 17 18 19 にint main() const int SIZE = 4; / /Declare two arrys string userNames[SIZE]; 20 21 ./Cal1 functions to fill and display 23 24 25 int points[SIZE]; fillArrays(userNames, points, SIZE) printArray (userNames, points, SIZE) 100 % Output Show output from: Debug MattPakbaz Arrays Practice.exe (Win32): Loaded C: Windows Syshow64\bcryptprimitives.dll Cannot MattPakbaz Arrays Practice.exe (Win32): Load The thread 8x1848 has exited with code 0 (8x0) The thread Ox1154 has exited with code 0 (0x0) The thread 8x754 has exited with code 0 (8x0) The thread 0x1734 has exited with code e (0x8) The program (1564] MattPakbaz, Arrays Practice.exe has exited with code (0x0) ed C:Windows 1SyswOW64,sechost.d. Cannot find or find o open the Ln 14 Col 32 HP LE220lw
main.cpp* 습 X で! Mattpakba,Arrays-Practice (Global Scope) 34 for (int i e; i < size; i++) 35 36 37 38 39 40 cout << Enter a name for personr #. << İ + 1 << .· ; getline(cin, names[i]); scores[i] rand() % 100 + 1; //А random number between 1 and 100 42 Evoid printArray(const string names[], const int scores[), int size)//Constant arrays 43 cout << Name for (int i e; i < sizes i++) Score << endl; 45 cout << İ + 1 << ) “ << setw(25) << left<< names[i]<< score s[i] << endl; 46 47 48 49 E doublel calcAverage(int scores[1, int size) 58 51 52 53 54 áverage in int total-e for (int i ·0; i < size; i++) total scores[i]; , return static cast<double>(total) / size 56 Show output fromc Debug 叁即 MattPakbaz Arrays Practice.exe (Wn32): LoadedCVWIndows 1Syswow64,bcryptprinitives.dll. Cannot ind or open th MattPakbaz Arrays Practice.exe (win32): Loaded C: Windows1Syswow64sechost.dll. Cannot Find or open the Po8 F11 The thread ex1848 has exited with code (ex0) The thread 0x1154 has exited with code (0x0) the thread 0x754 has exited with code 0 (ex8) The thread ex1734 has exited with code (0x0) The program [1564] MattPakbaz_Arrays Practice.exe has exited with code (0x8) n 56 Col S Ch 2 HP LE2201w
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution