Airline_Project_for_CS321

advertisement
Airline Project for CS321 – due date TBA, near end of October
Pages for Buying Tickets on the Shuttle Boston-NYC
Delta Airlines operates a shuttle service between Boston and NYC.
You are to design a series of pages on which Delta frequent flyers may order one way
and round trip tickets on the shuttle.
1. On the first page the flyer is asked to sign in – that is enter a name, frequent flyer
number and password. That form will be submitted to the Delta server.
2. The server will verify the information on the first page and respond by sending
the second page. You will see how the server sends this page, encoded in
HTML5, but for now you are to simply code the page in HTML5.
The second page will display the flyer’s name and frequent flyer number.
3. The second page will ask the user if he wishes to go one-way or round-trip.
Then the user will select from a drop down menu for the first leg of the trip:
i. Direction (Boston to NYC or NYC to Boston)
ii. Date (drop down menus or enter date in text boxes)
iii. Time of flight. (You should present a select list of valid flight
times. The value for each option should be the flight number – you
may either make up flight numbers of get them from Delta’s site.)
NOTE: I do not know if the flight schedule on weekends is the
same as during the week.
4. After the user has chosen the first flight, he will be offered a second flight, if he
has asked for a round trip.
The return is automatically in the opposite direction from the first leg of the trip.
The assumption is that the return is on the same day, but he should be able to
change that.
The user will select the flight time as above.
5. The user will be asked if anyone else is accompanying him, and be allowed to
enter first and last names and optional frequent flyer numbers for up to 4 other
people.
The user will also be able specify (check box) if any of the other people is a child
aged 2 or under (no seat assigned and no cost or mileage credit.).
6. The user should be asked to enter a credit card number with expiration date.
7. The on-submit function should verify that the dates are valid dates (e.g. no Feb.
30) and are within the next 6 months.
It should also verify that no two frequent flyer numbers are the same.
And it should verify that the credit card number is a valid number.
8. We will skip the validation of the frequent flyer numbers for the accompanying
guests and we will assume that charging of the credit card is done on the server
side after this page is submitted.
9. Finally, you should prepare a series of pages to print (\f gives a form feed) which
are the e-tickets for each of the people flying and the credit card receipt.
Obviously, this does not normally happen until the credit card has been charged,
but, you will see how to send an HTML5 page from the server which the user
could then print out. At this point you can code that page even tho’ you do not
yet know how to get the server to do its stuff.
10. All the pages should have a similar layout and a Delta logo. You should use an
external CSS to style the pages consistently.
Download