I cannot, for the life of me and my goldfish, get this code to work for an assignment. I cannot make it change the array location to a 1 to make it "filled" by a passenger. I do .inspect at the end of the script and the array is just full of 0's (like how it is already set up), nothing I have tried will get the array to reflect what I want it to do.
What am I doing wrong?
The boolean array is called $assignment....
Search Result
Collapse
3 results in 0.0015 seconds.
Keywords
Members
Tags
-
Ruby: airline reservation (arrays)
-
Finding sequences in a query
I'm am making a small programm for seat reservations. But I have a problem to find the sequence in the available seats. I will explain it with the following sample:
...Code:Row / Seat / Total Seats In Sequence / Sequence number / Available 1 / 1 / 3 / 1 / 3 1 / 2 / 3 / 2 / 2 1 / 3 / 3 / 3 / 1
-
how to write airline reservation system program in c.
A small airline has just purchased a computer for its new automated reservations system. You have been asked to program the new system. You are to write a program to assign seats on each flight of the airline's only plane (capacity: 10 seats).
Your program should display the following menu of alternatives :
Please type 1 for "smoking"
Please type 2 for "non-smoking"
If the person types...