Right, for a college project I have quite a complex problem I need to solve.
Problem: Create an online lesson booker.
What makes this hard? The college uses a two-weekly timetable, with college holidays not being counted as weeks.
Lessons take place in a room, at a given period on a given day in either week 1 or 2. The system must allow users to book rooms around these dates.
I was wondering how to go around designing this, I thought:
- Determine the day of the current week we are on - the admin will specify the particular week (either 1 or 2.)
- the system will (temporary hold) each week (somehow loop 7 days to do this?) show each week and its number (1 or 2) for a given period (say a year)
- the admin will select which weeks are holiday, thus telling the system which weeks to 'ignore' when assinging week numbers.
- when this is complete, roll of the list, assigning a particular day to a given week based upon the above table . when a booking is made / viewed etc it can be made in relation to the day which is stored with a reference to the week number.
Ok sorry this is jumbled, I'm finding it difficult to explain all this!
Does anyone have any ideas on how I should approach this, work on my "plan" above, or have any thoughts / comments, I'll greatly appreciate it.
Many thanks in advance.