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
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.Read more
Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.Read more
Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.Read more
By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.Read more