Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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: . 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
Step: 1
Python Program import csv import matplotlibpyplot as plt import json def createlist Create list from ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started