ScholarMatic | 24/7 Homework Help

ScholarMatic Will Help You Write Your Essays and Term Papers

Answered » You can buy a ready-made answer or pick a professional tutor to order an original one.

java

by | Nov 30, 2023 | questions

Please keep as simple as possible, use variables x,y,z and i,j,k for loops.

Document Preview:

A3/.DS_Store
__MACOSX/A3/._.DS_Store
A3/Assignment3-help.docx
You can the following template to complete ExtClock.java for assignment 2
Use the examples in pages 470-471 to test this ExtClock class
public class ExtClock extends Clock {
private String timeZone;
public ExtClock()
{
super();
timeZone = “Eastern Time”;
}
public ExtClock(int hr, int min, int sec, String inputTimeZone)
{
….
}
public void setTimeZone(String inputTimeZone)
{
…
}
public void getTimeZone()
{
…
}
public void printTime()
{
…
}
public boolean equals (…)
{
…
}
public void makeCopy(….)
{
….
}
… getCopy(….)
}
__MACOSX/A3/._Assignment3-help.docx
A3/Assignment3-update.doc
Problem 1
In Chapter 8 (Example 8-4, the class Person was defined to store the name of a person. The methods that we included merely set the name and print the name of a person. Please do the following:
Redine the class Person so that, in addition to what the existing class does, you can (i) set the last name only, (ii) set the first name only, (iii) set the middle name, (iv) check whether a given last name is the same as the last name of this person, (v) check whether a given name is the same as the first name of this person, (vi) check whether a given middle name is the same as the middle name of this person.
Add the method equals that return true if two objects contain the same first and last name;
Add the method makeCopy that copies the instance variables of a Person object into another Person object;
Add the method getCopy that creates and returns the address of the object, which is a copy of another Person object;
Add the copy constructor;
Write the defition of the methods of the class Person to implement the operations for this class.
Write a program that test various operations of the class Person.

Problem 2
In Chapter 8, the class Clock was designed to implement the time of day in a program. Certain application in addition to hours, minutes, and…

Attachments:


ScholarMatic: Explanation & Answer

Your ready answer from a verified tutor is just a click away for as little as $14.99


  

Click Order Now to get 100% Original Answer Customized to your instructions!

HOME TO CERTIFIED WRITERS

Why Place An Order With Us?

  • Certified Editors
  • 24/7 Customer Support
  • Profesional Research
  • Easy to Use System Interface
  • Student Friendly Pricing

Have a similar question?

PLAGIRAISM FREE PAPERS

All papers we provide are well-researched, properly formatted and cited.

TOP QUALITY

All papers we provide are well-researched, properly formatted and cited.

HIGHLY SECURED

All papers we provide are well-researched, properly formatted and cited.

ScholarMatic: Get Started

Assignment Writing Service

Feel safe and secure when placing an order on our portal!
Fruitful cooperation begins with solid guarantees, and we are professional enough to promise perfect results. Let’s get it started!