Write a program that accepts one command line argument, the name of a file containing data to be drawn as a pie chart, and draws the pie chart in a window.
• Sample data file, birds.txt, contains the one-word categories of birds, and the number of each kind.
swallow 10
magpie 5
fairywren 7
osprey 2
fantail 3
• The pie chart must use a different colour for each pie segment, and display a legend that shows the labels and the percentage for each.
• Your program should support up to 10 categories.
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment