The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 408 Weeks Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Suppose you own a soft drink distributorship that sells Coca-Cola (ID number 1), Pepsi (ID number 2), Canada Dry (ID number 3), and Hires (ID number 4) by the case. Write a program to do the following:
a. Read in the case inventory for each brand at the start of the week.
b. Process all weekly sales and purchase records for each brand.
c. Display the final inventory.
Each transaction will consist of two data items. The first will be the brand identification number (an integer). The second will be the amount purchased (a positive integer) or the amount sold (a negative integer). You can assume that you always have sufficient foresight to prevent depletion of your inventory for any brand.
Â
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on-----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be-----------