Friday, 27 September 2013

Caller id java program. I have no idea where or how to start

Caller id java program. I have no idea where or how to start

I have to create essentially a java program for Caller ID and I am
overwhelmed. I dont know where to start and I have to have this done by 12
midnight tonight. I am fairly new to programing and I can usually code
well, but when it comes to linked lists and arrays and such im completely
lost. Ill type down the criteria and hopefully get some direction. . . .
When displaying the menu, use an abbreviated form (like (R)eceive,
(D)elete, (S)how,...) to get it to fit in as few lines as possible. Along
with the menu, you should display the last received call (number and
name). Give an appropriate message if there are no stored calls. After an
option is executed, redisplay the menu and the last call unless the user
decides to quit.
Receive a call: Prompt for the phone number and the name of the caller.
Store this data in a way to make further processing as efficient as
possible. Note that the call may be immediately blocked (see option 6). A
caller with the name "Unknown Caller" should automatically be blocked.
Delete last call: Prompt the user to make sure they want to do this. If
so, remove the most recent call from memory. This should give an error
message (and not prompt for confirmation) if there are no numbers in
memory.
Show previous calls: Prompt for a number k; display the last k calls. If
there are no calls in memory, do not prompt for k. If k is larger than the
number of calls in memory, display all the calls, and print the message:
"No more calls".
Purge call: Removes all copies of the first call that appear somewhere
else in the list. So, for example, if the list were A, B, C, A, D, B, A
this option would turn the list into A, B, C, D, B. If it were A, B, C, D,
B, it would remain as is. There should be no output from this option.
Find number: Prompt the user for a name. Return the number associated with
that name if it appears in the call list; print an appropriate response if
not. Do not prompt for a name if the call list is empty.
Block call: Add the last call to a "block list" (removing it from the
regular list). If that number/name combination is ever received again, it
should not be added to the call list (print an appropriate message
instead).
Quit the program
For the normal "call list", you should use a list class similar to that
built in chapter 2. It must be something you code "from scratch". For the
"block list", you should use a class that is coded for you already in Java
(like ArrayList or LinkedList). Please be sure to comment appropriately. .
. .

No comments:

Post a Comment