B
B J H
Hi,
I've been aksed to write a program to simulate a taxi booking system. The
user inputs the date/time of the pickup, the pick-up location, driver name,
and the car number (there are only 5 cars).
The system must validate the date/time entered for the pick up. I.e. it must
be a valid date and must not be in the past. Also, each job is presumed to
last 30 minutes, and when booking a new job, the system must check the car
number, see whether its already booked, check if 30 mins have passed since
the pick up time, and if so it can be booked again.
I am really struggling implementing this. Should I use date or calender? Or
is there an easier way to do this ?
TIA
I've been aksed to write a program to simulate a taxi booking system. The
user inputs the date/time of the pickup, the pick-up location, driver name,
and the car number (there are only 5 cars).
The system must validate the date/time entered for the pick up. I.e. it must
be a valid date and must not be in the past. Also, each job is presumed to
last 30 minutes, and when booking a new job, the system must check the car
number, see whether its already booked, check if 30 mins have passed since
the pick up time, and if so it can be booked again.
I am really struggling implementing this. Should I use date or calender? Or
is there an easier way to do this ?
TIA