VISUAL BASIC HELP NEEDED

Discussion in 'All other topics' started by lukel, Dec 8, 2006.

Thread Status:
Not open for further replies.
  1. lukel

    lukel Member

    Joined:
    Aug 31, 2006
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    11
    Can someone plz help me out with this VB task ??

    Highland Airline requires software to help manage its on-line nooking system. Previously registered passengers will be able to log on using a valid ID and book a seat on the flight.

    You are asked to produce a trial version of the software operating with one flight and 5 seats. The trial version will assume that 5 passengers have already registered their IDs.

    HOW THE PROGRAM SHOULD WORK:

    Store Flight Details

    5 passengers IDs should be stored in a suitable data structure. You may use any suitable method available in your programming environment to achieve this. The program should also store the flight number.
    The IDs and flight number are given in the test data below.

    TEST DATA

    Flight Number: HA468

    IDs : WallaceW468P01
    LauderH468P02
    CarnegieA468P03
    ScottW468P04
    DeBruisR468P05

    The software should then ask for and check an ID, book a seat and display the booking details for each of the 5 passengers. These processes are described in more detail below.

    ENTER AND CHECK IDs

    The software should ask for the passenger's ID and check that it is on the stored list before allowing the passenger to book a seat. If it is not on the list, a suitable error message should be displayed and the passenger asked to re-enter their ID.

    BOOK A SEAT
    The software should request that the passenger selects a seat numbered from 1 to 5. if a passenger selects a seat which is already booked an error message should be displayed and the passenger asked to make another seat selection. This process should continue until an available seat is selected.

    DISPLAY BOOKING DETAILS

    The software should display the booking details as follows:

    Booking Confirmation
    Filght Number HA468
    ID CarnegieA468P03
    Name CarnegieA
    Seat Number 4


    NOTE: The name is derived from the ID by the program automatically removing the last 6 characters of the ID.


    ALGORITHM
    1. Store flight details
    2.Loop for all passengers
    3. Enter and check ID
    4. Book a seat
    5. Display Booking
    6 End Loop


    USE : separate sub-programs where appropriate.
    parameter passing where appropriate.
     
  2. tocool4u

    tocool4u Guest

    Idiot. Like Fiend said do it yourself if you want to impress your teacher. No one is going to help you and its easy anyway if you read the book. Also multiposting is really annoying and against the rules.
     
  3. Auslander

    Auslander Senior member

    Joined:
    Apr 23, 2004
    Messages:
    5,366
    Likes Received:
    0
    Trophy Points:
    116
    learned yet, lukel? or will we have to unleash law and order on you? chuck norris's right and left legs haven't been put to good use in a long time, anyway. you'd be good exercise. :p
     
  4. ddp

    ddp Moderator Staff Member

    Joined:
    Oct 15, 2004
    Messages:
    39,170
    Likes Received:
    137
    Trophy Points:
    143
    closed due to multi-posting
     
Thread Status:
Not open for further replies.

Share This Page