Question: PLEASE write a (((C language program)))! Suppose you own a beer distributorship that sells Piels (ID number 1), Coors (ID number 2), Bud (ID number

PLEASE write a (((C language program)))!
Suppose you own a beer distributorship that sells Piels (ID number 1), Coors (ID number 2), Bud (ID number 3), and Iron City (ID number 4) by the case. Write a complete C program to
a. Get the case inventory for each brand for the start of the week.
b. Process all weekly sales and purchase records for each brand.
c. Display out the final inventory.
Each transaction will consist of two data items. The first item will be the brand ID number (an integer). The second will be the amount purchased (a positive integer value) or the amount sold (a negative integer value). For now you may assume that you alway have sufficient foresight to prevent depletion of your inventory for any brand. (HINT: Your data entry should begin with four values representing the case inventory, followed by the transaction values.)
Find a flowchart attached to help you with this project.
 PLEASE write a (((C language program)))! Suppose you own a beer

START INV1 is the beginning inventory for beer type 1 (Piels) INPUT INV1, INV2, INV3, INV4 INPUT CODE Code is the beer type for the current transaction (1-4) OR-1(EOD) WHILE CODE != -1 body of the loop cxit PRINT INV1, INVZ, INV3, INPUT AMOUNT Amount is the amount of the current transaction The user should enter a positive number to represent purchasing cases of beer The user should enter a negative number to represent selling cases of beer INV4 CODE 1 TRUE INV1 = INV1 + AMOUNT STOP FALSE TRUE INV2 = INV2 + AMOUNT CODE = 2 FALSE INV3 = INV3+ AMOUNT TRUE CODE == 3 FALSE INV4 = INV4 + AMOUNT INPUT CODE Code is the beer type for the current transaction (1-4) OR-1(EOD) The amount will be entered (as long as code is not the EOD) at the top of the loop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!