You are on page 1of 1

Start

Output starting
message

Output choices

Input selection

Is selection No Is selection No Is selection No Is selection Yes


0?  1?  2?  3? 

Yes Yes Yes No

Open bookings.txt Pull data from Open bookings.txt Output "invalid Open users.txt with
with read access tournament table with read access  input" message read access

Compare with Conform data into Input username


Input venue choice
courts table tables and password

Output resultant Output data Compile a list of


list  from tables available timeslots No Is there a
match?

Increment counter
Output resultant list by 1 Yes

Output Level 2
 choices
Return to Level 1 No
Is counter =
5?

Yes Input selection

Yes No

Is selection No Is selection No Is selection No Is selection No Is selection


4?  3?  2?  1?  0? 

Yes
Yes Yes Yes

Open users.txt with Open users.txt with


Open bookings.txt Open bookings.txt write access write access
with read access with write access

Input new username


Input new password
 and password
Input new
Yes Has user booking info
previously
booked?
Does user Yes
No Does password
exist?
No meet req?
Yes Does booking No
Open already exist?
tournaments.txt with Yes
write access
Output new users.txt
with new user
No Output new users.txt
with new user
Input venue
choice Generate new
booking ID

Generate
tournament date Output new
based on venue bookings.txt
with new booking

Input participant
number

Yes No Yes Return to Level 1


Is
Is number
tournament
taken?
full?

Output new
tournament.txt
with new tournament
details

You might also like