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 C language program to 1. Get the case inventory for each brand for the start of the week. 2. Process all weekly sales and purchase records for each brand. 3. 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 always 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.)

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter3: Understanding Structure
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

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 C language program to
1. Get the case inventory for each brand for the start of the week.
2. Process all weekly sales and purchase records for each brand.
3. 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 always 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.)

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Module hierarchy chart
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage