coursework airport departures. how to fly... buy the ticket – you now have a place reserved on a...

15
Coursework Airport Departures

Upload: vicente-starkie

Post on 31-Mar-2015

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Coursework Airport Departures. How to fly... Buy the ticket – you now have a place reserved on a flight. – You now have a ticket (often this is virtual)

Coursework

Airport Departures

Page 2: Coursework Airport Departures. How to fly... Buy the ticket – you now have a place reserved on a flight. – You now have a ticket (often this is virtual)

Lecture 5: Review 2

How to fly...

• Buy the ticket – you now have a place reserved on a flight.– You now have a ticket (often this is “virtual”)

• Check in – go to the right desk, identify yourself and hand over bags– You are given a boarding pass.

• Clear security – your boarding pass is checked.• Board the plane – your boarding pass is

checked.

Page 3: Coursework Airport Departures. How to fly... Buy the ticket – you now have a place reserved on a flight. – You now have a ticket (often this is virtual)

Lecture 5: Review 3

Airport

Page 4: Coursework Airport Departures. How to fly... Buy the ticket – you now have a place reserved on a flight. – You now have a ticket (often this is virtual)

Lecture 5: Review 4

Departures Board

Page 5: Coursework Airport Departures. How to fly... Buy the ticket – you now have a place reserved on a flight. – You now have a ticket (often this is virtual)

Lecture 5: Review 5

Data is Shared

• Departures data is public, passengers need to see this information.

• The departures data may be available on the internet.

• Data on tickets is not public but it is shared, check in desk, boarding gate, flight crew.

Page 6: Coursework Airport Departures. How to fly... Buy the ticket – you now have a place reserved on a flight. – You now have a ticket (often this is virtual)

Lecture 6: Airport Departures 6

Database

• A database can be shared.• One server holds the data and serves it to

many clients.• As the data is stored in one place only there

can be only one version of the data.• Any updates are available to all clients

immediately.

Page 7: Coursework Airport Departures. How to fly... Buy the ticket – you now have a place reserved on a flight. – You now have a ticket (often this is virtual)

Lecture 5: Review 7

What can go wrong?

• Someone who has no booking can try to check in.

• Someone who has not checked in can try to board.

• Someone who has a booking does not check in.

• Someone who has checked in does not board.

Page 8: Coursework Airport Departures. How to fly... Buy the ticket – you now have a place reserved on a flight. – You now have a ticket (often this is virtual)

Lecture 5: Review 8

Flights Table

Page 9: Coursework Airport Departures. How to fly... Buy the ticket – you now have a place reserved on a flight. – You now have a ticket (often this is virtual)

Lecture 5: Review 9

Task - Compulsory

• Create the departures board:– The board must show the next 50 flights.– It must show the time of departure, the

destination, the flight number, the gate, notes.– The board should be easy to read.– The board should have text as big as possible.

• Edit Flight Data– Provide a list of all flights. Allow an operator to

change details (CRUD).

Page 10: Coursework Airport Departures. How to fly... Buy the ticket – you now have a place reserved on a flight. – You now have a ticket (often this is virtual)

Lecture 5: Review 10

Task - Optional

• The departures board must show destinations in English and Chinese. These alternate every 5 seconds.

• Where the same flight has two or more flight numbers it must take only one line. The flight codes must cycle every 2 seconds.

Page 11: Coursework Airport Departures. How to fly... Buy the ticket – you now have a place reserved on a flight. – You now have a ticket (often this is virtual)

Lecture 5: Review 11

Sample Solution

Page 12: Coursework Airport Departures. How to fly... Buy the ticket – you now have a place reserved on a flight. – You now have a ticket (often this is virtual)

Lecture 5: Review 12

Sample Solution

Page 13: Coursework Airport Departures. How to fly... Buy the ticket – you now have a place reserved on a flight. – You now have a ticket (often this is virtual)

Lecture 6: Airport Assessment 13

Score SheetTask Comments ScoreDepartures shows all columns

30%

Departures shows time now

20%

Edit Flight Table available

20%

English and Chinese destinations

10%

One line per flight 10%

Flight Numbers Cycle

10%

Total 100%

Page 14: Coursework Airport Departures. How to fly... Buy the ticket – you now have a place reserved on a flight. – You now have a ticket (often this is virtual)

Lecture 5: Review 14

Tomorrow

• At the tutorial you will practice how to use a database.

• At tomorrow’s lecture I will explain how it works.

Page 15: Coursework Airport Departures. How to fly... Buy the ticket – you now have a place reserved on a flight. – You now have a ticket (often this is virtual)

Lecture 5: Review 15

Summary

• You will build the application on your own.• I will show you examples using a different

database.• You can apply the examples to the Flights

database.• I will check your work on Thursday.• You will need to explain, in English, what your

program does.