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: 3677772 • 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 50 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

read sales data from a file (cis14l6.txt)

Place the cost per item and the quantity sold for each bin into an array of structures;

Display a table giving the inventory at the end of the day and the amount of revenue obtained from each bin;

Compute the total revenue for the day;

List the number of each bin that contains fewer than 25 items at the end of the day.

Sort the list from least sold to most sold, and output that result.

Format of cis14l6.txt:

1                              13.00                                     20

2                              2.25                                        35

3                              7.45                                        19

4                              17.49                                     42

5                              34.95                                     17

Column 1 is the bin number, column two is the price, and column 3 is number sold for the day.

P.S : I need help with the CODE of VISUAL BASIC, thanks before.

Explanation / Answer

Solution:

      

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