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

Write a program that will allow the user to continually enter fromthe keyboard,

ID: 3615754 • Letter: W

Question

Write a program that will allow the user to continually enter fromthe keyboard, a product number (1 thru 4), a day number (1 thru 6)and the quantity purchased (an integer). This means that fourdifferent products are sold on each of six days. These values willbe entered many times (I could input thirty triples of numbers ortwo hundred triples of numbers - product number, day number andquantity). I might have sold 21 of product 4 on day 3 and latersell 12 more of product 4 on day 3. It is necessary that youaccumulate the total for the product each day and not replace theprevious entry. As the data is entered, you should store in atwo-dimensional array a count of how many products of each type aresold on the day. When the user finishes inputting values, he/sheshould use a sentinel selected by the programmer (indicate thissentinel in your prompt).
Once the user has finished the input create a NEAT table withlabels for the output for the total number of each product sold oneach day of the week. Also output within the table, the total ofall products sold each day and the total number of each productthat is sold for all days.

Explanation / Answer

please rate - thanks #include #include using namespace std; int main() {int tot[5][7]={0},i,prod,day,quant; coutprod; while(prod>0)     {coutday;      coutquant;      tot[prod-1][day-1]+=quant;      coutprod;      } cout
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