Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

*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

image text in transcribed*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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions