
Big Java, Binder Ready Version: Early Objects
6th Edition
ISBN: 9781119056447
Author: Cay S. Horstmann
Publisher: WILEY
expand_more
expand_more
format_list_bulleted
Question
Chapter 25, Problem 12PP
Program Plan Intro
To design an XML format for the appointments in an appointment calendar
Program plan:
- In the file “AppointmentDate.java”, import necessary package, and create a class “AppointmentDate”,
- Declare necessary variables.
- Define the constructor.
- Define the method “equals()” to determine if the dates are equal.
- Define the method “toString()” to print a string representation of the date.
- In the file “AppointmentTime.java”, import necessary package, and create a class “AppointmentTime”,
- Declare necessary variables.
- Define the constructor.
- Define the method “hashCode()” to get the hash code..
- Define the method “equals()” to determine if the appointment times are equal.
- Define the method “toString()” to print a string representation of the time.
- In the file “AppointmentCalendar.java”, import necessary package, and create a class “AppointmentCalendar”,
- Declare an array list.
- Define the constructor.
- Define the method “add()” to add an appointment to the calendar.
- Define the method “cancel()” to cancel an appointment from the calendar.
- Define the method “getAppointmentsForDay()” to get all appointments for a certain date.
- Define the method “getAllAppointments()” to get all appointments.
- In the file “Appointment.java”, import necessary package, and create a class “Appointment”,
- Declare necessary variables.
- Define the constructor.
- Define the method “equals()” to determine if the appointment is the same as another appointment.
- Define the method “hashCode()” to get the hash code.
- Define the method “fallsOn()” to determine if an appointment falls on a certain day.
- Define the method “format()” to format the appointment.
- Define the method “getDescription()” to get the description.
- Define the method “getDay()” of type “AppointmentDate” to get the day.
- Define the method “getFrom()” of type “AppointmentTime” to get the "from" time.
- Define the method “getTo()” of type “AppointmentTime” to get the "to" time.
- In the file “AppointmentParser.java”, import necessary packages, and create a class “AppointmentParser”,
- Declare necessary variables.
- Define the constructor.
- Define the method “parseCalendar()” to parse an “AppointmentCalendar” from the given file.
- Define the method “parseCommands()” to write an AppointmentCalendar to the given file.
- In the file “AppointmentSystem.java”, import necessary packages, and create a class “AppointmentSystem”,
- Define the method “main()”,
- If the arguments length is less than “2”.
- Print the message.
- Create required file objects.
- Execute “try” statement.
- Create an object for “AppointmentParser”.
- Parse calendar from file.
- Call the method to parse and run commands from file.
- Call the method to write the calendar.
- Catch and handle “XPathExpressionException” exception.
- Catch and handle “ParserConfigurationException” exception.
- Catch and handle “TransformerConfigurationException” exception.
- Catch and handle “TransformerException” exception.
- Catch and handle “SAXException” exception.
- Catch and handle “IOException” exception.
- If the arguments length is less than “2”.
- Define the method “main()”,
Expert Solution & Answer

Want to see the full answer?
Check out a sample textbook solution
Students have asked these similar questions
I need help in explaining how I can demonstrate how the Laplace & Inverse transformations behaves in MATLAB transformation (ex: LIke in graph or something else)
You have made the Web solution with Node.js. please let me know what problems and benefits I would experience while making the Web solution here, as compared to any other Web solution you have developed in the past.
what problems and benefits/things to keep in mind as someone just learning
PHP is the server-side scripting language. MySQL is used with PHP to store all the data. EXPLAIN in details how to install and run the PHP/MySQL on your computer. List the issues and challenges I may encounter while making this set-up?
why I asked: I currently have issues logging into http://localhost/phpmyadmin/ and I tried using the command prompt in administrator to reset the password but I got the error LOCALHOST PORT not found.
Chapter 25 Solutions
Big Java, Binder Ready Version: Early Objects
Ch. 25.1 - Prob. 1SCCh. 25.1 - Prob. 2SCCh. 25.1 - Prob. 3SCCh. 25.2 - Prob. 4SCCh. 25.2 - Prob. 5SCCh. 25.3 - Prob. 6SCCh. 25.3 - Prob. 7SCCh. 25.4 - Prob. 8SCCh. 25.4 - Prob. 9SCCh. 25.4 - Prob. 10SC
Ch. 25 - Prob. 1RECh. 25 - Prob. 2RECh. 25 - Prob. 3RECh. 25 - Prob. 4RECh. 25 - Prob. 5RECh. 25 - Prob. 6RECh. 25 - Prob. 7RECh. 25 - Prob. 8RECh. 25 - Prob. 9RECh. 25 - Prob. 10RECh. 25 - Prob. 11RECh. 25 - Prob. 12RECh. 25 - Prob. 13RECh. 25 - Prob. 14RECh. 25 - Prob. 15RECh. 25 - Prob. 16RECh. 25 - Prob. 17RECh. 25 - Prob. 18RECh. 25 - Prob. 1PECh. 25 - Prob. 2PECh. 25 - Prob. 3PECh. 25 - Prob. 4PECh. 25 - Prob. 5PECh. 25 - Prob. 6PECh. 25 - Prob. 1PPCh. 25 - Prob. 2PPCh. 25 - Prob. 3PPCh. 25 - Prob. 4PPCh. 25 - Prob. 5PPCh. 25 - Prob. 6PPCh. 25 - Prob. 7PPCh. 25 - Prob. 8PPCh. 25 - Prob. 9PPCh. 25 - Prob. 10PPCh. 25 - Prob. 11PPCh. 25 - Prob. 12PP
Knowledge Booster
Similar questions
- Capsim Team PowerPoint Presentations - Slide Title: Key LearningsWhat were the key learnings that you discovered as a team through your Capsim simulation?arrow_forwardWrite the SQL code that permits to implement the tables: Student and Transcript. NB: Add the constraints on the attributes – keys and other.arrow_forwardDraw an ERD that will involve the entity types: Professor, Student, Department and Course. Be sure to add relationship types, key attributes, attributes and multiplicity on the ERD.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education