JAC444 Workshop 11 Comparable Interface and Cloneable Interface solved

$30.00

Original Work ?
Category: You will Instantly receive a download link for .ZIP solution file upon Payment

Description

5/5 - (8 votes)

Description: The tasks in this workshop is a recap of some concepts from previous workshops and some new concepts like Comparable Interface and Cloneable Interface. Task 1: Define a class named Time for encapsulating a time. The class contains the following: 1. A data field of the long time that stores the elapsed time since midnight, Jan 1, 1970. 2. A no-arg constructor that constructs a Time for the current time. 3. A constructor with the specified hour, minute, and second to create a Time. 4. A constructor with the specified elapsed time since midnight, Jan 1, 1970. 5. The getHour() method that returns the current hour in the range 0-23. 6. The getMinute() method that returns the current minute in the range 0-59. 7. The getSecond() method that returns the current second in the range 0-59. 8. The getSeconds() method that returns the elapsed total seconds. 9. The toString() method that returns a string such as “1 hour 2 minutes 1 second” and “14 hours 21 minutes 1 second”. 10. Implement the Comparable

This assignment represents my own work in accordance with Seneca Academic Policy. Signature Date: **********************************************/ Code Submission Criteria: Please note that you should have: • Appropriate indentation. • Proper file structure • Follow java naming convention • Document all the classes properly • Do Not have any debug/ useless code and/ or files in the assignment • Do not have everything in the main method. • Have a separate TestClass with the main method in it. • Check your inputs if the user is not entering garbage inputs. • Use exceptional handling or other methods to let the user know if the inputs are incorrect. JAC – 444 Semester —- Deliverables and Important Notes: All these deliverables are to be uploaded on the blackboard once done. • You are supposed to create video/ record voice/ detailed document of your running solution. (20%) o Screen Video captured file should state your last name and id, like Ali_123456.mp4 (or whatever the extension of the file is) o Record voice clip should also include a separate word file with the screen shots of your program’s output, state your last name and id, like Ali_123456.mp3 (or whatever the extension of the file is) o Detailed document should include screen shots of your output, have your name and id on the top of the file and save the file with your last name and id, like li_123456.docx (or whatever the extension of the file is). • A word/ text file which will reflect on learning of your concepts in this workshop. Also include the instructions on how to run your code. (30%) o Should state your Full name and Id on the top of the file and save the file with your last name and id, like Ali_123456.txt • Submission of working code. (50%) o Make sure your follow the “Code Submission Criteria” mentioned above. o You should zip your whole working project to a file named after your Last Name followed by the first 3 digits of your student ID. For example, Ali123.zip. • Your marks will be deducted according to what is missing from the above-mentioned submission details. • For Late submissions, please refer to the late policy for the course. • Remember that you are encouraged to talk to each other, to the instructor, or to anyone else about any of the assignments, but the final solution may not be copied from any source.