The Goderich Police Department wants a program that will allow officers to request records on all criminals who are guilty of any one of three specific crimes( Assault, Arson, Theft). The file contains the name, offence, and conviction date of each criminal. Design an interactive program that will prompt the user for the specific type of crime they are searching for. The program is to search the criminal record file of 8 criminals that you have previously read and stored in arrays and print complete statistics on all criminals who were found guilty of a crime in the category that the officer requested.
A menu is required that has the following options:
Enter Criminal Data
Display Matching Crime
Option 2 should display output which must include a title of the crime being displayed, column headings, and the information on the criminals that match the crime.
Bugs Malone, Theft, 1981
Slippery Sal, Theft, 1991
Al Copone, Assualt, 1947
Eddie Striker, Arson, 1969
***Bonus - Add a menu item to sort the list of criminals, it should sort them and output the sorted list, the user should be able to choose what he wants the list sorted by (name, crime, or year).
***Double Bonus!!! - If you have completed the bonus, then add one more option onto your menu, this one will perform a binary search on the newly sorted list. Note: Your program should remember what the user sorted the list by, and should use that as the search key, you will however still need the user to enter the search criteria.
Décerné à :
7 freelance ont fait une offre moyenne de 76 $ pour ce travail
Hi, I can do this job. I had worked on several projects which are similar to this project. Let me know if you are interested to go ahead with me.