Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Pertamina sale data (50 points) A Pertamina gas station sells following product, namely: Premium, Pertalite, Pertamax, Pertamax Plus, Diesel and Pertadex. The following data

image text in transcribed

1. Pertamina sale data (50 points) A Pertamina gas station sells following product, namely: Premium, Pertalite, Pertamax, Pertamax Plus, Diesel and Pertadex. The following data shows the fuel being consumed within a year (12 months) in kilo liters. Month Premium Pertalite Pertamax Diesel Pertadex 55 56 34 30 57 60 32 58 70 45 80 40 January February March April May June July August September October November December 45 43 40 56 30 38 40 35 36 20 21 15 Pertamax Plus 45 40 35 28 40 43 48 49 50 50 52 59 53 24 35 39 45 44 43 59 65 87 78 70 76 100 122 134 156 166 165 164 167 164 167 168 190 49 50 52 77 55 85 90 106 55 53 53 The unit price/liter of those fuels are following: Premium 6900 IDR/liter, Pertalite 7150 IDR/liter, Pertamax 8650 IDR/liter, Pertamax Plus 9500 IDR/liter, Diesel 6500 IDR/liter and Pertadex 9900 IDR/liter. Develop a Python program to perform the following: a. Calculate the total income for the whole year b. Define which product produces the lowest income and when it happens c. Plot the income/month from each product in one graph and show the point of lowest income with an arrow and annotation of "Lowest Income" 1. Pertamina sale data (50 points) A Pertamina gas station sells following product, namely: Premium, Pertalite, Pertamax, Pertamax Plus, Diesel and Pertadex. The following data shows the fuel being consumed within a year (12 months) in kilo liters. Month Premium Pertalite Pertamax Diesel Pertadex 55 56 34 30 57 60 32 58 70 45 80 40 January February March April May June July August September October November December 45 43 40 56 30 38 40 35 36 20 21 15 Pertamax Plus 45 40 35 28 40 43 48 49 50 50 52 59 53 24 35 39 45 44 43 59 65 87 78 70 76 100 122 134 156 166 165 164 167 164 167 168 190 49 50 52 77 55 85 90 106 55 53 53 The unit price/liter of those fuels are following: Premium 6900 IDR/liter, Pertalite 7150 IDR/liter, Pertamax 8650 IDR/liter, Pertamax Plus 9500 IDR/liter, Diesel 6500 IDR/liter and Pertadex 9900 IDR/liter. Develop a Python program to perform the following: a. Calculate the total income for the whole year b. Define which product produces the lowest income and when it happens c. Plot the income/month from each product in one graph and show the point of lowest income with an arrow and annotation of "Lowest 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

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions

Question

3. Would you say that effective teamwork saved their lives?

Answered: 1 week ago