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 Type  January February March April May June Cosmetics 8723.19 7397.21 5982.15 8319.54 7298.31 7490.02 Drugs 9384.12 9740.98 8940.34 8876.34 7093.23 9830.11 Stationery 938.25 834.98 976.29 994.56 912.05 849.12 Confectionery 1832.65 972.34 983.65 1289.28 1197.30 989.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:

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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 Type  January February March April May June
Cosmetics 8723.19 7397.21 5982.15 8319.54 7298.31 7490.02
Drugs 9384.12 9740.98 8940.34 8876.34 7093.23 9830.11
Stationery 938.25 834.98 976.29 994.56 912.05 849.12
Confectionery 1832.65 972.34 983.65 1289.28 1197.30 989.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
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
Transcribed Image 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
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY