I will have 8 tables. 5 designed for people and 5 designed for people with disabilities . The first 5 tables have 5 seats , whereas the other 3 has 3 seats.
So in MainMerged I will tave tableNumber from 1 to 10. The table from 1 to 5 are thought for people whereas the tables with number from 6 to 10 are designed for people with disabilities by default. But now I want to have a logic for splitting people in these 2 categories.
Such logic is that:
For each Reservation:
if numberOfPeople >> numberOfPeopleWithDisabilities --> category = people.
if numberOfPeople << numberOfPeopleWithDisabilities --> category = disabilities.
else --> category = people.
Therefore If I, that I am the waiter insert one group of people to one table that does not respect the logic , I will have a warning telling me "choose a different table number".
Hence, I will need also to add in the GUI two labels and textfield to insert number of normal people and people with disabilities , that need to be summed up by the system when reserving a table, and in case reserving a table number with wrong category , the warning will be thrown
make the app more realistic:
I will have 8 tables. 5 designed for people and 5 designed for people with disabilities . The first 5 tables have 5 seats , whereas the other 3 has 3 seats.
So in MainMerged I will tave tableNumber from 1 to 10. The table from 1 to 5 are thought for people whereas the tables with number from 6 to 10 are designed for people with disabilities by default. But now I want to have a logic for splitting people in these 2 categories.
Such logic is that:
For each Reservation:
if numberOfPeople >> numberOfPeopleWithDisabilities --> category = people.
if numberOfPeople << numberOfPeopleWithDisabilities --> category = disabilities.
else --> category = people.
Therefore If I, that I am the waiter insert one group of people to one table that does not respect the logic , I will have a warning telling me "choose a different table number".
Hence, I will need also to add in the GUI two labels and textfield to insert number of normal people and people with disabilities , that need to be summed up by the system when reserving a table, and in case reserving a table number with wrong category , the warning will be thrown