Question: You are to create a Python program with the following characteristics: . Menu driven program Properly commented Read data from a file the user

You are to create a Python program with the following characteristics: .

You are to create a Python program with the following characteristics: . Menu driven program Properly commented Read data from a file the user supplies o For our example use crime.csv as you sample file Options to include o Display a Crime report that will list: O O I I Count of all crimes by beat Save this info into a JSON file as a dictionary with the Month as the filename (eg: January.json) Ask the user for a beat number and display all of the crimes (not the count!) for that beat. Ask the user for 5 ncic numbers and create a bar chart of the count of those 5 ncic codes Ask the user for a title of the chart Display the chart Save the chart as a PNG file Count of crimes grouped by ncic code by 1000 (0-999,1000-1999, etc) Count of all crimes by district I o Quit the program Submit the .py file the PNG file, the JSON file and screen captures of each of the options executing

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Python Program import csv import matplotlibpyplot as plt import json def createlist Create list from ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!