Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create UML diagram for following java software package in draw.io . 1 . Read from TWO inputs files: phone book file and instruction file When

Create UML diagram for following java software package in draw.io.1. 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 instructions/commands to be performed on the records. The
instructions/commands can be: add,delete,query, and save.
2. Add a record (a persons contact details) to your phone book
For instance, the following instruction
add name Jo Bloggs; birthday 08-07-1980; phone 88884444; address 9001 Chester
Crescent
is supposed to add/update a record for a person with name "Jo Bloggs", birthday
8/7/1980, phone number 88884444 and address "9001 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. E.g.,
update the items of address, email, and phone.
otherwise your system adds the new valid record to the list
3. Delete record(s) from your list by name
For instance, the instruction
delete Jeff Vader
indicates deleting the record(s) with name Jeff Vader from the list.
delete Jeff Vader ; 8-07-1980
indicates deleting the record with name Jeff Vader and birthday
08/07/1980 from the list.
4. Query the records by person name, birthday, or phone number.
For instance,
query birthday 8-09-1991
query name David Joans
query phone 9110110
is supposed to save the query result to be saved later into a file.
5. Save the resulting data collection to output file(s)
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions

Question

How does the concept of hegemony relate to culture?

Answered: 1 week ago