Using C. This question deals with processing the semi-annual sales for a drug store. The drug store sells four types of items, namely Cosmetics, Drugs, Stationery, and Confectionery. You have been...


Using C. This question deals with processing the semi-annual sales for a drug store. The drug store
sells four types of items, namely Cosmetics, Drugs, Stationery, and Confectionery. You have
been presented with the following set of data which shows sales for the January to June period
for the various item types.


















































Item TypeJanuaryFebruaryMarchAprilMayJune
Cosmetics8723.197397.215982.158319.547298.317490.02
Drugs9384.129740.988940.348876.347093.239830.11
Stationery938.25834.98976.29994.56912.05849.12
Confectionery1832.65972.34983.651289.281197.30989.41


Your job is to develop a program which accepts as inputs the above sales figures and which
determines the total sales for the six month period in each category as well as average monthly
sales in each category. In addition, your program should also determine the total sales for each
month. Your program should produce as output a report with the following format:



Item Type<br>January February March April<br>May<br>June<br>Total<br>Average<br>Cosmetics<br>8723.19 7397.21 5982.15 8319.54 7298.31 7490.02 45210.42 7535.07<br>Drugs<br>9384.12 9740.98 8940.34 8876.34 7093.23 9830.11 53865.12 8977.52<br>Stationery<br>938.25<br>834,98<br>976.29<br>994.56<br>912.05<br>849.12<br>5505.25<br>917.54<br>Confectionery<br>1832.65 972.34<br>983.65<br>1289.28 1197.30 989.41<br>7264.63<br>1210.77<br>Total<br>20428.21 18945.51 16882.43 19479.72 16500.89 19158.66<br>

Extracted text: Item Type January February March April May June Total Average Cosmetics 8723.19 7397.21 5982.15 8319.54 7298.31 7490.02 45210.42 7535.07 Drugs 9384.12 9740.98 8940.34 8876.34 7093.23 9830.11 53865.12 8977.52 Stationery 938.25 834,98 976.29 994.56 912.05 849.12 5505.25 917.54 Confectionery 1832.65 972.34 983.65 1289.28 1197.30 989.41 7264.63 1210.77 Total 20428.21 18945.51 16882.43 19479.72 16500.89 19158.66

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here