Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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:

https://gist.github.com/azcoov/866998

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote