PLEASE C++ wRITE A GuestHouse so that it becomes a graphical user interface (GUI) application, where a user can add a b

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

PLEASE C++ wRITE A GuestHouse so that it becomes a graphical user interface (GUI) application, where a user can add a b

Post by answerhappygod »

PLEASE C++wRITE A GuestHouse so that it becomes a graphical userinterface (GUI) application, where a usercan add a booking, check whether there is a vacancy in the guesthouse during a specified timeperiod and find out how many rooms are available on a given date.Thus, the user interface shouldhave appropriate widgets to enable the user to achieve these threetasks.To support serialization of bookings, expand the GuestHouse GUIproject so that the list ofBookings managed by BookingList can be written to a file in an XMLformat and aBookingList object can be re-created with a list of Bookings readfrom an XML file. You shoulduse DOM in both cases (that is, to read from and write toXML).Given below is an XML format that should be used for saving aBookingList object. The XMLformat should have the same number of elements for booking andattributes for booking, contact,guest but the order of the elements and attributes can be differentfrom the format given below:<bookinglist><booking type="sharing"><contact telnumber="082 280 2882" name="A Balone"email="[email protected]"/><arrivaldate>2015/07/08</arrivaldate><departuredate>2015/07/12</departuredate><guest telnumber="073 527 3492" name="B Eater"email="[email protected]"/><guest telnumber="012 345 6789" name="C Locanth"email="[email protected]"/></booking><booking type="single"><contact telnumber="082 280 2882" name="A Balone"email="[email protected]"/><arrivaldate>2015/07/08</arrivaldate>COS3711/Assignment 2/20224<departuredate>2015/07/12</departuredate><guest telnumber="082 280 2882" name="A Balone"email="[email protected]"/></bookinglist>The BookingList object should be written to XML automatically whenthe GUI is closed, to afile chosen by the user. Similarly, when the application starts itshould give the user an option toread from an XML file chosen by the user. Make use of the standardfile dialog to assist the userin selecting files.You are allowed to modify the classes in the given project. Youshould also be adding new classesto answer this question. You are expected to follow goodprogramming design and principles.You can decide on the design of the GUI and it should be donemanually (not using Qt Designer).
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply