A grocery sells following product, namely: Instant noodle, Cooking oil, Rice, Sugar, Egg and Milk. The following data shows the item being sold within a year (12 months). Cooking Oil Rice [kg] [liter] Month Instant Sugar [kg] Egg [item] Milk [liter] Noodle [item] January February 45 55 56 45 100 34 43 57 60 40 122 30 March 40 58 53 35 134 32 April 56 70 24 28 156 45 May 30 80 35 40 166 40 June 38 78 39 43 165 49 July August September 40 70 45 48 164 50 35 76 44 49 167 52 36 77 43 50 164 55 October 20 85 59 50 167 55 November 21 90 65 52 168 53 December 15 106 87 59 190 53 The unit price of those items is following: Instant noodle 2,500 IDR/item, Cooking oil 10,000 IDR/liter, Rice 7,500 IDR/kg, Sugar 10,000 IDR/liter, Egg 2,000 IDR/item and Milk 15,000 IDR/liter. Develop a Python program to perform the following tasks: a. Calculate the total income for the whole year b. Define which product produces the highest income and when it happens c. Plot the income/month from each product in one graph and show the point of highest income with an arrow and annotation of "Highest Income"

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter5: Working With Multiple Worksheets And Workbooks
Section: Chapter Questions
Problem 4AYK
icon
Related questions
Question

Use Python

A grocery sells following product, namely: Instant noodle, Cooking oil, Rice, Sugar, Egg and Milk.
The following data shows the item being sold within a year (12 months).
Cooking Oil
(liter]
Month
Instant
Rice [kg]
Sugar (kg] Egg [item] Milk [liter]
Noodle
[item]
January
February
45
55
56
45
100
34
43
57
60
40
122
30
March
40
58
53
35
134
32
April
Мay
56
70
24
28
156
45
30
80
35
40
166
40
June
38
78
39
43
165
49
July
August
September
40
70
45
48
164
50
35
76
44
49
167
52
36
77
43
50
164
55
October
20
85
59
50
167
55
November
21
90
65
52
168
53
December
15
106
87
59
190
53
The unit price of those items is following: Instant noodle 2,500 IDR/item, Cooking oil 10,000
IDR/liter, Rice 7,500 IDR/kg, Sugar 10,000 IDR/liter, Egg 2,000 IDR/item and Milk 15,000
IDR/liter. Develop a Python program to perform the following tasks:
a. Calculate the total income for the whole year
b. Define which product produces the highest income and when it happens
c. Plot the income/month from each product in one graph and show the point of highest income
with an arrow and annotation of "Highest Income"
Transcribed Image Text:A grocery sells following product, namely: Instant noodle, Cooking oil, Rice, Sugar, Egg and Milk. The following data shows the item being sold within a year (12 months). Cooking Oil (liter] Month Instant Rice [kg] Sugar (kg] Egg [item] Milk [liter] Noodle [item] January February 45 55 56 45 100 34 43 57 60 40 122 30 March 40 58 53 35 134 32 April Мay 56 70 24 28 156 45 30 80 35 40 166 40 June 38 78 39 43 165 49 July August September 40 70 45 48 164 50 35 76 44 49 167 52 36 77 43 50 164 55 October 20 85 59 50 167 55 November 21 90 65 52 168 53 December 15 106 87 59 190 53 The unit price of those items is following: Instant noodle 2,500 IDR/item, Cooking oil 10,000 IDR/liter, Rice 7,500 IDR/kg, Sugar 10,000 IDR/liter, Egg 2,000 IDR/item and Milk 15,000 IDR/liter. Develop a Python program to perform the following tasks: a. Calculate the total income for the whole year b. Define which product produces the highest income and when it happens c. Plot the income/month from each product in one graph and show the point of highest income with an arrow and annotation of "Highest Income"
Expert Solution
steps

Step by step

Solved in 2 steps with 7 images

Blurred answer
Knowledge Booster
Introduction to computer system
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage