Jane's farm stand sells a variety of vegetables. Write a program that produces an output file of vegetables sold, sorted by the biggest selling vegetable in terms of money made to the poorest selling.
The output file should list the total sales of each vegetable and the average daily sales for each vegetable. Each output record should have the following fields:
Vegetable name, total sales, average daily sales
Use the data from the following chart as input for your program.
I am unable to upload the chart on my program but the following data is organized into a 6 columns and 8 rows.
beets, 20, 13.50, 21.25, 12.5, 14.75, 18, 25
corn, 22.5, 23, 30, 19.78, 15.7, 18.9, 32
brocolli, 16, 16.5, 17.4, 19.3, 23, 34, 12
carrots, 15, 23, 34.5, 26, 16.75, 12.8, 33.5
potatoes, 9, 17.8, 21, 28.4, 34.2, 56, 41.25