Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Objective: Develop skills to design and implement applications using object-oriented approach Problem: Develop an Address Book application to manage contact information. Requirements (1) Develop a

image text in transcribed

image text in transcribed

Objective: Develop skills to design and implement applications using object-oriented approach Problem: Develop an "Address Book" application to manage contact information. Requirements (1) Develop a "Contact" class to model the contact objects. Each contact object has contact name, phone, email, and the date when the contact was added/updated to the Address Book. Each instance variable of a contact can be updated as needed. Coding requirements Contact class should have a. Each instance variable with private visibility for complete encapsulation b. Each contact object should have a unique contact number. Please note that this number is the property of all object of the class. C. no-arg constructor and at least one constructor with arguments d. Getter and setter method for each instance variable e. Overridden toString() method which should return contact information as a String that can be used to display the contact with each instance variable with appropriate label on a line. (2) Develop a main method in the Address Book class. The main method should create an array of 5 objects of Contact class. b. Create two Contact objects using no-arg constructor and setter methods a. (2) Develop a main method in the Address Book class. The main method should create an array of 5 objects of Contact class. b. Create two Contact objects using no-arg constructor and setter methods Create three Contact objects using argumented constructor d. Display the contact data on the console using toString() method of each object in the array with enhanced for loop as a formatted table. Each data item should be left justified in its space. Contact number should be in 5 spaces, Name should be 20 spaces, Email in 25 spaces, phone number in 15 spaces, and the date as you like (3) Output of the application should be Address Book of lastName, firstName: Contact Name Contact # Email Date Phone Objective: Develop skills to design and implement applications using object-oriented approach Problem: Develop an "Address Book" application to manage contact information. Requirements (1) Develop a "Contact" class to model the contact objects. Each contact object has contact name, phone, email, and the date when the contact was added/updated to the Address Book. Each instance variable of a contact can be updated as needed. Coding requirements Contact class should have a. Each instance variable with private visibility for complete encapsulation b. Each contact object should have a unique contact number. Please note that this number is the property of all object of the class. C. no-arg constructor and at least one constructor with arguments d. Getter and setter method for each instance variable e. Overridden toString() method which should return contact information as a String that can be used to display the contact with each instance variable with appropriate label on a line. (2) Develop a main method in the Address Book class. The main method should create an array of 5 objects of Contact class. b. Create two Contact objects using no-arg constructor and setter methods a. (2) Develop a main method in the Address Book class. The main method should create an array of 5 objects of Contact class. b. Create two Contact objects using no-arg constructor and setter methods Create three Contact objects using argumented constructor d. Display the contact data on the console using toString() method of each object in the array with enhanced for loop as a formatted table. Each data item should be left justified in its space. Contact number should be in 5 spaces, Name should be 20 spaces, Email in 25 spaces, phone number in 15 spaces, and the date as you like (3) Output of the application should be Address Book of lastName, firstName: Contact Name Contact # Email Date Phone

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_2

Step: 3

blur-text-image_3

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

Auditing And Systems Exam Questions And Explanations

Authors: Ph.D. Gleim, Irvin N., Ph.D. Hillison, William A., Grady M. Irwin

17th Edition

1581949278, 978-1581949278

More Books

Students also viewed these Accounting questions

Question

What is the basic concept of Maslow's hierarchy of needs?

Answered: 1 week ago