Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need screenshot of code for task 5 where user can input the details.create a Java software package to process the records in a phone
I need screenshot of code for task where user can input the details.create a Java software package to process the records in a phone book according to the given instructionscommandsPurpose:
Read from TWO inputs files: phone book file and instruction file
When the ECB system starts up it assumes that an electronic phone book has the
contact information as given in the phone book file, and it manages the contact records
according to the instructions given in the instruction file.
Phone book file contains contact information in a predefined format;
Instruction file lists instructionscommands to be performed on the records. The
instructionscommands can be: adddeletequery and save
Add a record a persons contact details to your phone book
For instance, the following instruction
add name Jo Bloggs; birthday ; phone ; address Chester
Crescent
is supposed to addupdate a record for a person with name Jo Bloggs", birthday
phone number and address Chester Crescent".
Your ECB system checks whether this is an existing record:
if both person name and birthday are identical to those of an existing record in your
phone book, the existing record will be updated with the new input information. Eg
update the items of address, email, and phone.
otherwise your system adds the new valid record to the list
Delete records from your list by name
For instance, the instruction
delete Jeff Vader
indicates deleting the records with name Jeff Vader from the list.
delete Jeff Vader ;
indicates deleting the record with name Jeff Vader and birthday
from the list.
Query the records by person name, birthday, or phone number.
For instance,
query birthday
query name David Joans
query phone
is supposed to save the query result to be saved later into a file.
Save the resulting data collection to output files
Save the resulting data collection of the instructions of add and delete into the
specified output file Save the query results to a separate specified report file. When
there are more than one query command, append the latest query results to the end of
the report file. Separate the results of different query instructions using dash lines with
query instructions
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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