Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can someone help me with the implements a contact listing class Design a class called Contact (the class file should be called Contact.java) that implements

can someone help me with the implements a contact listing class
image text in transcribed
Design a class called Contact (the class file should be called Contact.java) that implements a contact listings class, with the following exact' fields/data members/attributes and methods/operations in this order: Field/Method Description Name This field holds the name of the contact Address This field holds the physical address of the contact Phone This field holds the phone number of the contact Email This field holds the email address of the contact Contact This constructor creates a contact with the 4 values received as parameters Input This method inputs a contact (the t'values for the 4 fields) from the console Output This method outputs the contact the 4 fields) to the console ToString This method serializes the contact into a strine: NAME Name, ADDRESS Address, PHONE-Phone, EMAIL=Email DeepCopy This method creates and returns a deep copy of the contact Compare This method compares 2 contacts and returns true if they are equal (same name) and false if not Update This method updates the fields with the values received from parameters Design the following 3 classes for Array-Based structures: 1. a class called UnsortedArray (class file name UnsortedArray.java) that implements an expanded version of an unsorted array class, 2. a class called SortedArray (class file name SortedArray.java) that implements an expanded version of a sorted array class 3. a class called Unsorted OptimizedArray (class file name Unsorted OptimizedArray lava) that implements an expanded version of an unsorted- optimized array class All the classes should have the following exact fields/data members/attributes and methods/operations in this order: Field/Method Field/Method Field/Method Description UnsortedArray SortedArray Unsorted OptimizedArray Data Data Data This field holds the array of contacts Size Size Size This field holds the size of the array Next Next Next This field holds the number of the next contact in the array UnsortedArray SortedArray UnsortedOptimizedArray This constructor initializes the fields with empty/default values Insert Insert Insert This method inserts a contact in the array Delete Delete Delete This method deletes a contact from the array Fetch Fetch Fetch This method fetches a contact from the array Update Update Update This method updates a contact in the array Output Output Output This method outputs all the contacts from the array to the console Design a class called Contact (the class file should be called Contact.java) that implements a contact listings class, with the following exact' fields/data members/attributes and methods/operations in this order: Field/Method Description Name This field holds the name of the contact Address This field holds the physical address of the contact Phone This field holds the phone number of the contact Email This field holds the email address of the contact Contact This constructor creates a contact with the 4 values received as parameters Input This method inputs a contact (the t'values for the 4 fields) from the console Output This method outputs the contact the 4 fields) to the console ToString This method serializes the contact into a strine: NAME Name, ADDRESS Address, PHONE-Phone, EMAIL=Email DeepCopy This method creates and returns a deep copy of the contact Compare This method compares 2 contacts and returns true if they are equal (same name) and false if not Update This method updates the fields with the values received from parameters Design the following 3 classes for Array-Based structures: 1. a class called UnsortedArray (class file name UnsortedArray.java) that implements an expanded version of an unsorted array class, 2. a class called SortedArray (class file name SortedArray.java) that implements an expanded version of a sorted array class 3. a class called Unsorted OptimizedArray (class file name Unsorted OptimizedArray lava) that implements an expanded version of an unsorted- optimized array class All the classes should have the following exact fields/data members/attributes and methods/operations in this order: Field/Method Field/Method Field/Method Description UnsortedArray SortedArray Unsorted OptimizedArray Data Data Data This field holds the array of contacts Size Size Size This field holds the size of the array Next Next Next This field holds the number of the next contact in the array UnsortedArray SortedArray UnsortedOptimizedArray This constructor initializes the fields with empty/default values Insert Insert Insert This method inserts a contact in the array Delete Delete Delete This method deletes a contact from the array Fetch Fetch Fetch This method fetches a contact from the array Update Update Update This method updates a contact in the array Output Output Output This method outputs all the contacts from the array to the console

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

Database Design And Implementation

Authors: Shouhong Wang, Hai Wang

1st Edition

1612330150, 978-1612330150

More Books

Students also viewed these Databases questions