B1 Design a class to represent a day’s bookings in an appointment book. Give to this class an appropriate name of your choice. The class should hold the day’s date and an array to represent each hour of the day for which an appointment can be made (say nine entries, representing 9.00 to 17.00 ). Each element of the array only needs to be able to indicate whether that hour is booked or not.
Include in the above class the following methods:
- prompt for and accept the day’s date
- initialise all the hours in the day to “free??
- repeatedly prompt the user for an hour number
- if the hour is “free?? mark it as “booked??
- otherwise tell the user “already booked
[login to view URL] a program to test the class produced for B1 above.
[login to view URL] a program by amending the program B2 above, so that as well as being able to book a particular hour in the day, the user can request the first free hour of the day.
[login to view URL] a program by amending the program B2 above (this is a bit more tricky), so that the user can make an appointment of more than one hour in length. The user enters a start hour (e.g. 10 ) and required length in hours (e.g. 2). The program checks to see if the whole period is free and if it is it makes the booking, otherwise it rejects it.
[login to view URL] a program to create a linked list of days to represent an appointment book. The program should allow you to add and display days. It is not necessary to allow appointments to be made.
[login to view URL] the concept of multiple inheritance by declaring at least two subclasses of the class produced in section B1 above and one subclass of both the above two subclasses. Give to all these new subclasses appropriate names of your choice. Write a program to test all the classes produced in this section.
## Deliverables
1) Complete, or B1, B2, B3 and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
Operating System is Windows XP and it is Visual C++.NET