Class project - due oct 25. 2013

In 2008 the Jamaica Constabulary Force planned to launch a covert unit to tackle
high-level corruption and scams. The unit was to be headed by a former highranking
member of the Jamaica Defence Force's Military Investigation Unit, and
would also have agents from the USA and the UK. The UK, USA and Canada planned
to assist the Jamaican Government with the financing of the unit. One of the
functions of the unit was to track phone calls of persons suspected of being corrupt.
The unit will need an application software designed to keep track of all phone calls
to and from the phone numbers of suspects. The software will maintain three files:
suspect phone numbers, call log, and call statistics. The suspect phone numbers file
contains the fields phone number, first name, last name and case number. The call
log file contains the fields date, time, incoming/outgoing, phone number, and
minutes spent on call. The call statistics file contains the fields phone number,
number of calls in, number of calls out, total minutes on incoming calls, total
minutes on outgoing calls. You are tasked with designing, implementing and
demonstrating a simulation of this system. The system is to perform the following
tasks:
· Initialize System – When this menu option is selected, the application
creates the three files, or erase their contents if they already existed. The
suspect phone numbers file and the call log file are to be created as plain text
files. The call statistics file is to be created as a binary file and store phone
records in the range 9000000 and 9009999.
Page 1 of 3
Name:
ID #:
Grade:
Name:
ID #:
Grade:
· Add Suspects Phone Number – When this menu option is selected the
user is prompted to enter the suspects telephone number (in the range
9000000 and 9009999), first name, last name and case number, then this
information is added to the end of the suspect phone numbers file. The file
should be laid out in a neat tabular format and be able to be viewed in a text
editor.
· Simulate Call – When this menu option is selected, the application randomly
selects one of the telephone numbers from the suspect phone numbers file,
and randomly decides if this is an incoming call to that number or an
outgoing call from that number. It then randomly chooses a telephone
number for the incoming call or outgoing call (in the range 9000000 and
9009999) which will represent the telephone number the call is coming from
or the number being called. The application then randomly generates the
number of minutes spent on the incoming/outgoing call. This information (the
date of the call, the time of the call, incoming/outgoing, phone number called
from, phone number called to, and minutes spent on call will be displayed on
the screen and also stored in the call log file. Next, the call statistics file is
updated by locating the suspect's phone number in the call statistics file,
then if this was an incoming call to the suspect's number, the number of calls
in is incremented and the and the minutes spent on call is added to the total
minutes on incoming calls. If instead this was a call from the suspect's phone
number then the number of calls out is incremented and the minutes spent
on call is added to the total minutes on outgoing calls.
· Display Call Log – When this menu option is selected, the application
displays the information in the call log file in a neat tabular format. If the
information is too large to fit on one screen then the user is asked to press
any key to display the rest, one screen full at a time until all the information
is displayed.
· Display Call Statistics – When this menu option is selected, the user is
prompted to enter or select any phone number from the suspect phone
numbers file. If the phone number is not in the suspect phone numbers file
then an appropriate error message should be displayed. If the phone number
is located in the suspect phone numbers file, then the corresponding call
statistics should be displayed for that phone number from the call statistics
file, namely the phone number, number of calls in, number of calls out, total
minutes on incoming calls, and total minutes on outgoing calls.
· Exit – When this menu option is selected, the application should be
terminated.
Page 2 of 3
What is your question?
i dnt kno how to start this. we just been introduced to functions, arrays, pointers..
I suggest you start at the beginning of the assignment and read it all the way through. Then come up with a design idea or two.
im doing that just now
Topic archived. No new replies allowed.