Question: *python code 1. Groceries sale data (50 points) A grocery sells following product, namely: Instant noodle, Cooking oil, Rice, Sugar, Egg and Milk. The following

*python code 1. Groceries sale data (50 points) A grocery sells following*python code

1. Groceries sale data (50 points) A grocery sells following product, namely: Instant noodle, Cooking oil, Rice, Sugar, Egg and Milk. The following data shows the iter being sold within a year (12 months). Month Rice [kg] Sugar [kg] Ege (item) Milk (liter) Cooking Oil [liter) 100 122 January February March April May June July August September October November December Instant Noodle [item] 45 43 40 56 30 38 40 35 36 20 21 15 55 57 58 70 80 78 70 76 77 85 90 106 56 60 53 24 35 39 45 44 43 59 65 87 45 40 35 28 40 43 48 49 50 50 52 59 134 156 166 165 164 167 164 167 34 30 32 45 40 49 50 52 55 55 53 53 168 190 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!