Tuesday, April 14, 2020

Advanced Programming Assignment free essay sample

Design a system   to implement simulation of mobile phonebook. Phonebook should store name and number upto a limited size. Phone book should provide various   operations like adding entries, editing the entries, deleting   the entries, searching and traversing the entries. User of the system should be able to perform all the above operations. He should be able to clear the list too. Search functions should have the facilities to search both number as well as name i.e. Once name is entered, it should return its number provided name exist in the phonebook, and when number is entered, it should return both name and number provided that number is in the list. Phone book must be implemented in Java programming language. A simple text based menu should be used as user interface. Various operations should be performed by taking the input from the user. Design: In the design phase, first step is to develop use-case diagram. We will write a custom essay sample on Advanced Programming Assignment or any similar topic specifically for you Do Not WasteYour Time HIRE WRITER Only 13.90 / page It shows the activities performed by the user. In this phone-book simulation, there is only one user of the application. He performs all the operations. Following diagram shows tha use-case diagram for the phone-book application. As shown, a single user performing all the operations. Under browse operations, two suboperations namely editing entries and travering of entries are performed. Class Diagram: There are two classes used in this simulation; phonebook and contact. ‘Phonebook’ class contains all the interfaces and ‘contact’ class contains the two arrays to store name and phone number.Array data structure is used to store the name and phone number in sequential format. Class diagram contains classes and relation between them. Here, interfaces in phonebook classare used to implement the various operations on the contact class.