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
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
Get step-by-step solutions from verified subject matter experts
