
-----------------------------------
Alck
Thu Aug 07, 2008 10:23 am

need help in object orientated programming
-----------------------------------
Hi all,
my friend have a problem with his mini project. Please advise.

Question:
 
A community centre has decided to computerize the booking of two badminton courts.
The two courts are named as B1 and B2. Bookings are to be done on a two-hour block
from 10am to 10pm daily.
Each booking record should have the Facility Name, Day and Time, the player?s NRIC
number and the booking status of the court. Each player?s record should have name,
NRIC number and Telephone number.
Design the necessary classes and member functions to achieve the following tasks :
a. Allow user to book the court by entering the facility name, day and time. If it is
available, prompt the user to enter his name, NRIC number and telephone number.
Display a message ?Courts is booked? if the facility has already been booked by
other player.
b. Allow user to enquire the availability of court for the entire week.
c. Allow user to enquire his/her booking by entering NRIC number.
d. Store the booking record in a text file when the system terminates
 
Program

 
--//Header--//
 
#include 
#include 
#include 
 
using namespace std;
 
class Record
{
protected:
	char F_name
He got problem displaying the entire week of availability of badminton court in the availability() function. Please assist as this coming tues is the dead line. Please re-write the code if possible. Thanks[/quote]

-----------------------------------
Zeroth
Thu Aug 07, 2008 11:21 am

Re: need help in object orientated programming
-----------------------------------
Just posting to note there is a 
for (int i = 0; i < 7; i += 2)
       if (Time == 1000)
             cout 