Question: Use the SimpleGraphics library to write a Python 3 program that is able to draw a pie chartFor a pie chart, the chart must meet
Use the SimpleGraphics library to write a Python 3 program that is able to draw a pie chartFor a pie chart, the chart must meet the following requirements: be roughly in the centre of the window has a title centred at the top of the chart, regardless of length the title is decided by the user has a diameter between 300 and 500 pixels be able to handle from 2 to 6 sectors the specific number of sectors is decided by the user the total value of the pie chart is decided by the user value of each sector is decided by the user, excluding the final sector you can assume the sum of these values does not exceed the total the value of the final sector should be calculated to complete the pie chart each sector must have a name provided by the user each sector must have a unique colour has a legend for all of the sectors each legend item includes a box indicating the colour of the sector and the corresponding label of that sector the legend labels and boxes should be positioned such that they do not overlap for a pie chart title of the chart number of sectors (2 to 6) total value of all sectors combined label of sector 1, value of sector 1, label of sector 2, etc. for the last sector, only ask for the label but not the value (because the program can calculate the value of the last sector based on all of the other information that was given by the user) please do not import anything else but simplegraphics and explain!!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
