Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Need to be done in Java, this is my third time posting...every person has gotten

ID: 3795123 • Letter: N

Question

Need to be done in Java, this is my third time posting...every person has gotten it wrong. Thank you!

Create a Time class (abstract) that includes the following members o hour o minutes o seconds o Include overloaded constructor and accessor/mutator functions Create a MilTime class derived from Time that includes the following members o milHours - stores military time as an integer 1:00 PM would be stored as 1300 4:30 PM would be stored as 1630 o accessor for MilHour - override from base class . return milHours o Mutator for milHour o Overloaded constructor - accept milHours and seconds - convert milHours to hours and minutes and store in class variables - same as constructor . return hour in standard format o setTime o getStandHr - call base class accessor Create a TimeClock class derived from MilTime that includes o another milHours and seconds variables - these hours represent an ending time - the variables inherited from MilTime represent a starting time o overloaded constructor - accept start time and end time use base class constructor to store start time o accessor and mutator for new class variables o TimeDifference - calculate the number of hours between start time and end time Create a main program that uses a MilTlme object and a TimeClock object o Test that all class member functions work properly o Create the objects based on user input The MilTime and TimeClock classes should validate that the data entered is within the proper ranges o seconds should be between 0 and 59 (inclusive) o military time should be between 0 and 2359 (inclusive) - the last two digits should never be between 60 and 99 (inclusive) o numbers outside the range should be set to the closest valid number

Explanation / Answer

Below are the classes:

Class 1: Time

*******************************************

class 2: MilTime

*****************************************************

class 3: TimeClock

*********************************************************

class 4: Test Class

Note: Create all classes in estest package

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote