Question: Question 3 ( 1 5 marks ) : Write a Python program that plots a bar and line graph on the same grid. The bar
Question marks:
Write a Python program that plots a bar and line graph on the same grid. The bar graph should represent the monthly sales figures of a company for the first half of the year January to June The line graph should represent the cumulative sales over these months.
Use NumPy to generate random sales data for six months.
Plot the monthly sales figures as a bar graph.
Plot the cumulative sales as a line graph on the same grid.
Label the x axis with the months January to June and label the y axis with the sales figures.
Add a title and a legend to the graph.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
