A retail store has five bins, numbered 1 to 5, each containing a different commo
ID: 3552268 • Letter: A
Question
A retail store has five bins, numbered 1 to 5, each containing a different commodity. At the beginning of a particular day, each bin contains 45 items. The table below shows the cost per item for each of the bins, and the quantity sold during that day.
Write a program to
(a) -Place the cost per item and the quantity sold for each bin into an array of structures;
(b) -Display a table giving the inventory at the end of the day and the amount of revenue obtained from each bin;
(c) -Compute the total revenue for the day;
(d) -List the number of each bin that contains fewer than 20 items at the end of the day.
Cost of items and quantities sold
Bin Cost per Item Quantity sold
1 3.00 10
2 12.25 30
3 37.45 9
4 7.49 42
5 24.95 17
Explanation / Answer
A similar program you can immigrate:
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.