here is a ballbuster
BEGIN SUBPROGRAM Enter Form Details
Set Index = 0
Set GuestCount = 0
Read GuestName, N
f_Nights, N
f_Guests, Hotel, Breakfast
WHILE GuestName NOT "ZZZZ"
Guest(Index).Name = GuestName
Guest(Index).Nights = No_of_Nights
Guest(Index).Number = No_of_Guests
Guest(Index).Hotel = Hotel
Guest(Index).BFast = Breakfast
GuestCount = GuestCount + Guest(Index).Number
Index = Index + 1
Read GuestName, N
f_Nights, N
f_Guests, Hotel, Breakfast
ENDWHILE
TotalRooms = Index
TotalGuests = GuestCount
END SUBPROGRAM Enter Form Details
GuestName, N
f_Nights, N
f_Guests are text boxes that can be inputted
Hotel is a radio button (case)
breakfast is a boolean variable
Now i need to 'critically analyse' this, I have already modified it from its original algorithm but the WHILE loop confuses me, basically this WHILE loop keeps going until there is ZZZZ, now nobody is going to enter ZZZZ for their last name and thats it, is there another way to logically tell it to keep repeating, i was thinking along the lines of WHILE NOT EOF, but Im really not sure, very confused, id really appreciate some help this assignment is due thursday D: