MUST BE DONE ON BLUEJ.
This exercise is a follow up to the clock display-updatedisplay project (also given for this week). For this question our goal once again is to create a clock that displays time as a 12-hour notation with am/pm. This time we will modify the internals of the clock object. As given in the book, we have two NumberDisplay objects: (i) for the minutes which run from 0 to 59 and (ii) for the hours which run from 0 to 23. Modify the hours display so that it runs from 1 to 12. Add an additional field that keeps track of whether the time is am or pm.
Create a new project in BlueJ by clicking on the menu option Project > New project. This will create a folder with the project name (see below). All BlueJ project-related files for this project will be stored in this folder. Create new classes by clicking on the [New Class] button. All Java class files that you create (.java files) will be stored in the BlueJ project folder. The project folder will contain other files as well. After completing and testing your assignment, zip the entire BlueJ folder and submit it. Since your Instructor will need all files in the project folder, make sure you zip the entire folder. For this assignment the names of the BlueJ project, Java class files, and the zip file you submit are given below:
BlueJ project: clock-display-12hr
Java files: ClockDisplay.java, NumberDisplay.java
Submit the full zipped BlueJ project folder: clock-display-12hr.zip
Purchase the answer to view it
This exercise is a follow up to the clock-display-updatedisplay project (also given for this week). For this question our goal once again is to create a clock that displays time as a 12-hour notation …