Identify contacts by type when displaying details of contact

Assignment Help JAVA Programming
Reference no: EM131270025

Assignmetn

Introduction:

As a competent programmer, your ability to develop programs that implement inheritance, polymorphism, and collections will help you design and develop applications to meet customer requirements. This project is an opportunity for you to peer behind the scenes at how a program may function and will help you apply object- oriented programming skills in a familiar, real-world scenario.

Scenario:

You have been assigned by your employer to create a computer application to help employees manage their contact list. Users must be able to store two types of contacts: business and personal. Both types have common fields as well as properties unique to them. The application needs to accept and store contacts by type. Your team lead has required that you use an object-oriented design for the application. You are encouraged to consider usability of the system when designing the user interface. It is up to you if you want to use a menu-driven or graphical user interface; however, the approach needs to create an inheritance relationship for the contacts in order to facilitate evolving this application to easily add new contact types in the future.

Requirements:

Note: Submit all .java and .class files in one zipped folder.

Note: To complete this project, you will need the latest Java SE Development Kit (JDK). This includes the Java Runtime Environment (JRE) and command line development tools that are useful for developing applets and applications. It is recommended that you complete this project using NetBeans Integrated Development Environment. To download this program, see the web link below.

Create a contact list application that meets the employer's following minimum requirements.

A. Input Requirements

1. Include a prompt that allows the user to enter a command from the following four options, repeating the process of displaying the menu screen until the user has selected "quit."

• add a business contact
• add a personal contact
• display contacts
• quit

2. Include a prompt that allows the user to enter the following identifiable information when the "add a business contact" command is selected:

• first name
• last name
• address
• phone number
• e-mail address
• job title
• organization

Note: You are not required to store the contact information as persistent data in a database.

3. Include a prompt that allows the user to enter the following identifiable information when the "add a personal contact" command is selected:

• first name
• last name
• address
• phone number
• e-mail address
• date of birth

B. Output Requirements

1. Display the results to the user on screen in a readable and descriptive format (e.g., System.out) by doing the following:

a. Display all contacts' first and last names when the "display contacts" command is selected.
b. Include a numeric key for each contact that will be used to invoke the method that displays the contact details.

2. Include a prompt that allows the user to enter the numeric key to display all details of the contact in a readable and descriptive format (e.g., System.out, output to a text file using FileWriter).

a. Identify contacts by type when displaying the details of a contact: business or personal.

C. Design Requirements

1. Demonstrate use of collections (e.g., TreeSets, ArrayList).
2. Demonstrate use of encapsulation.
3. Demonstrate use of inheritance by doing the following:

a. Create one abstract class.
b. Create two subclasses.

4. Demonstrate use of polymorphism by overriding a method of the abstract class in both subclasses (i.e., method that displays contact details).

Reference no: EM131270025

Questions Cloud

Swapping the contents of two registers : Write MIPS assembly code for swapping the contents of two registers, $t0 and $t1. You may not use any other registers.
Compare that tendency with instances of safeguarding : Examine Adler's 3 safeguarding tendencies in the text. Select 1 of the tendencies and compare that tendency with instances of safeguarding that you find in Scripture. Demonstrate how that situation would have been improved if safeguarding tendenci..
Design an algorithm for reversing the words in the sentence : Design an algorithm for counting the number of 1's in a 32-bit number. Implement your algorithm using MIPS assembly code.
Which might be least amenable to rehabilitation : Wayne williams and casey anthony which of these murderers might be most amenable to rehabilitation and which might be least amenable to rehabilitation.
Identify contacts by type when displaying details of contact : Identify contacts by type when displaying the details of a contact: business or personal. Display all contacts' first and last names when the "display contacts" command is selected.
Evaluate whether free trade policies : 1. In that regard critically evaluate whether free trade policies are better than a protectionist one. 2. Using two different countries of your choice as an example, discuss David Ricardo's Theory of Comparative Advantage and explain its relevance..
Test whether a given string is a palindrome : Design an algorithm for testing whether a given string is a palindrome. (Recall that a palindrome is a word that is the same forward and backward. For example, the words "wow" and "racecar" are palindromes.) Implement your algorithm using MIPS ass..
Explains the functions and limitations of neural plasticity : Prepare a 1,050- to 1,400-word paper that explains the functions and limitations of neural plasticity in the participant's recovery process. Include two to three peer-reviewed sources.
Find gini index of income concentration for the lorenz curve : Discuss the effect of the area bounded by x = y and the Lorenz curve getting larger relative to the equitable distribution of income.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Calculate the average of the values in the integer array

Calculate the average of the values in the integer array, multiply that average by the weight, and return the result - The method calcWeightedAvg should return a double and take two parameters

  Declare an array and initialize it

Which one of the following will declare an array and initialize it with five numbers?

  Mining information from sales data is a common task in both

mining information from sales data is a common task in both traditional and online stores. past sales information can

  Design and implement your own simple class to represent

Design and implement your own simple class to represent any household item of your choice (toaster, fan, hair dryer, piano ...) Your class should have a constructor, one additional method and at least one member variable (e.g. boolean isOn to turn th..

  The bookstore wants you to make an object-oriented model

student bookstore at pleasant creek community college situation the bookstore staff at pleasant creek community college

  Write a code fragment that would printout the multiplication

Write a code fragment that would printout the multiplication table for the number 3 multiplied by (1-10) .

  Write an interface for an abstract method

Write an interface, PointingDevice, containing:  an abstract method, getXCoord that returns an int and an abstract method, getYCoord that returns an int.

  Java program to write-read data from user using i-o function

Write java program to write and read data from user using I/O functions. Describe class with data members name[20],emp_id,basic pay,net pay.calculate all the allowances.

  Create a testrectangle class that tests both constructors

An overloaded constructor that takes integer width and height arguments, uses a separate method to check whether the width and height fall within the range between 0 and 30, and throws an exception if out of range.

  Write a class called palatine

Write a class called palatine that converts an STL string into Pig Latin form. The rules for converting a string into Pig Latin are as follows.

  Develp a simple model of an object-oriented system

you are going to develp a simple model of an object-oriented system. this model should be able to provide all the working examples of inheritance, encapsulation, and polymorphism through the use of class,. methods, and objects

  Develop view for order number and order total in file

Develop a view named OrdTot. It comprises of order number and order total for each order currently on file. Order total is the sum of number ordered.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd