Please write a Java program that validates time when entered. It should output the time as either AM or PM or the error if entered incorrectly. There are two files needed to complete this program: Driver.java Time.java Directions: Only submit the .java files needed to make the program run. Do not submit the .class files or any other files. Include properly formatted prologue, comments, indenting, and other style elements. Driver.java : Driver class should loop until "q" is entered to quit If enter is not "q", then create an instance of the Time object passing the entry as an argument
Get Free Quote!
278 Experts Online