• Best of luck to the class of 2024 for their HSC exams. You got this!
    Let us know your thoughts on the HSC exams here
  • YOU can help the next generation of students in the community!
    Share your trial papers and notes on our Notes & Resources page
MedVision ad

Multiple Seat Bookings (1 Viewer)

raidan

Member
Joined
Oct 30, 2004
Messages
44
Location
Sydney, The Shire
Gender
Male
HSC
N/A
Did you guys get the pseudocode out for that question wherer ppl book more than 1 seat in a row ? I managed to get something out but i donno how right it is:

WHILE booked_seats > 1
REPEAT
WHILE array(row,seat) = true
print array(row,seat)
seat = seat + 1
booked_seats = booked_seats - 1
ENDWHILE
UNTIL booked_seats = 0
ENDWHILE

i think thats along the lines of what i wrote.... looks pretty wrong to me, what did u guys get ?
 

raidan

Member
Joined
Oct 30, 2004
Messages
44
Location
Sydney, The Shire
Gender
Male
HSC
N/A
u'll have to use ur imagination to figure out which WHILE and REPEAT statement correpsonds with each line.. soz
 

xeriphic

Member
Joined
May 7, 2004
Messages
452
Location
Sydney
it has already been asked in another thread, basically just copy the original algorithm and modify it would be fine
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top