The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Need help with writing a program that validates time when entered. It should output the time as either AM or PM or the error if entered incorrectly.
Unit 6 Chapter 15 AssignmentGrading Information:This Program isdueonDate Specified.Comments areREQUIRED; flow charts and pseudocode areNOT REQUIRED.DirectionsPointsThe files must be called <LiFiUnit6Ch15.java>LiFiTime.java(Time class file)The files must be called as specified above, (LiFi = Your Last Initial Your First Initial)Proper coding conventions required the first letter of the class start with a capitalletter and the first letter of each additional word start with a capital letter.Only submit the .javafiles needed to make the program run. Do not submit the.classfiles or any other files.5%Style ComponentsInclude properly formatted prologue, comments, indenting, and other style elementsas shown in Chapter 2 starting page 64 and Appendix 5 page 881-892.5%Topics covered in chapterTopics with * are covered in this assignment.*Exceptions and Exception Messages*try / catch*checked and unchecked exceptions*generic catch block*throwsBasic RequirementsWrite a program that validates time when entered. It should output the time as eitherAM or PM or the error if entered incorrectly.See sample output below.20%LiFiUnit6Ch15.javaDriver class should loop until “q” is entered to quitIf enter is not “q”, then create an instance of the LiFiTime object passing theentry as an argumentIf no error10%
Attachments: