[Solved]Java Programming Assignment Begin Starterproject Provide Add Also Asking Begin Really Loo Q37222328
Java programming
So in this assignment you will begin with the starterProject Iprovide and then add to it. I am also asking that beforeyou begin you really look at the starterProject because this is theobject-oriented basics. The starterProject is the exact same as theClassClockExample.zip in Module 5. I’ve also done thisusing a clock because it is something that you already know how itworks. Remember that OOD and OOP is an organizationalchange from the functional programming method. This isbecause we could create a clock without using OOP and it wouldwork.
You will create another class called dateTime. Seebelow for the details. Then you will inherit the clockclass and the dateTimeApp will test it.
Requirements:
- Your dateTime.java must be the class and inherit the clockclass.
- Your dateTimeApp.java is the main program.
- You will create the following public member functions for thedateTime class.
- dateTime()
//Default constructor withparameters
//Post: date is set to 1-1-2000
//day = 1; month = 1; year = 2000
//don’t forget to call the defaultconstructor for the
//the clock class.
- dateTime(intday, intmonth, intyear, inthours, intminutes,intseconds)
//Constructor with parameters
//Post: The date and time is setaccording to
//the parameters
//The day, month and year getvalidated and set
//The hours, minutes and seconds getpassed on to the clock
//constructor
- voidsetDate(intday, intmonth, intyear)
//Function to set the date
//Post: time is set according tothe
//parameters
voidsetTime(inthours, intminutes,intseconds)
//Function to set the time
//Post: time is set according tothe
//parameters
- voidprintTime()
//Function to print the time
//Time is printed in the formhh:mm:ss
- voidprintDate()
//Function to print the date
//Date is printed in the formday-month-year
- voidprintDateTime()
//Function to print the time
//Date and then Time is printed in theform
//day-month-year hh:mm:ss
- voidincrementSeconds() *should still work
//Function to increment the time by 1second
//Post: The time is incremented by 1second
//If the before-increment time is23:59:59, the time
//is reset to 00:00:00
- voidincrementMinutes()
***should still work
//Function to increment the time by 1minute
//Post: The time is incremented by 1minute
//If the before-increment time is23:59:53, the time
//is reset to 00:00:53
- voidincrementHours()
***should still work
//Function to increment the time by 1hour.
//Post: The time is incremented by 1hour.
//If the before-increment time is23:45:53, time
//is reset to 00:45:53
- boolequalTime(dateTime otherClock)
***should still work
//Function to compare the twotimes
//Function returns true if this timeis equal to
//otherClock; otherwise it returnsfalse
- voidincrementDays()
//Function to increment the date by 1day
//Post: The time is incremented by 1day
//If the before-increment date is31-12-2009, the date
//is reset to 1-1-9010
- voidincrementMonths()
//Function to increment the date by 1month
//Post: The month is incremented by 1month
//If the before-increment date is31-12-2009, the date
//is reset to 31-1-9010
- voidincrementYears()
//Function to increment the date by 1year.
//Post: The year is incremented by 1year.
- boolequalDate(dateTime otherDate)
//Function to compare the twodates
//Function returns true if this dateis equal to
//otherwise it returns false
- The dateTimeApp will then run the clock and thedate. You need to test all of the functionality you havebuilt in.
- Be sure you also update or change the header file toyours.
INFO 1521 – StarterProject
The following is what I might have given you if I wanted you tocreate the starterProject. “You are going to create a clock in thisproject and use a class while doing it. So the classwill be the clock called Clock.java and then you will have anotherJAVA file that runs it called ClockApp.java. Below arethe requirements for the clock and the clockapp that runs it. “
Requirements:
- Your Clock.java must be the class.
- Your ClockApp.java is the main program.
- Your clock will be a 24 hour clock
- You will create the following public member functions for theclock class.
- clock()
//Default constructor withparameters
//Post: time is set to 00:00:00
//hr = 0; min = 0; sec = 0
- clock(inthours, intminutes, intseconds)
//Constructor with parameters
//Post: The time is set accordingto
//the parameters
//hr = hours; min = minutes; sec =seconds
- voidsetTime(inthours, intminutes, intseconds)
//Function to set the time
//Post: time is set according tothe
//parameters: hr = hours; min =minutes; sec = seconds
- voidprintTime()
//Function to print the time
//Time is printed in the formhh:mm:ss
- voidincrementSeconds()
//Function to increment the time by 1second
//Post: The time is incremented by 1second
//If the before-increment time is23:59:59, the time
//is reset to 00:00:00
- voidincrementMinutes()
//Function to increment the time by 1minute
//Post: The time is incremented by 1minute
//If the before-increment time is23:59:53, the time
//is reset to 00:00:53
- voidincrementHours()
//Function to increment the time by 1hour.
//Post: The time is incremented by 1hour.
//If the before-increment time is23:45:53, time
//is reset to 00:45:53
- boolequalTime(constclockType otherClock)
//Function to compare the twotimes
//Function returns true if this timeis equal to
//otherClock; otherwise it returnsfalse
- The ClockApp will then run the clock. You need totest all of the functionality you have built in.
- Don’t forget your header file
- While testing the functionality create a loop and increment theseconds for a while.
Expert Answer
Answer to Java programming So in this assignment you will begin with the starterProject I provide and then add to it. I am also as… . . .
OR

