Airline Reservation System with boolean Array

Good morning,
I have written the following code for an airline reservation system. The applet will assign the user a seat in either economy or first class. When first class is full, it will offer economy seats. This works - but when it is about to assign the last seat in 'economy', the program stops working. The error messages suggest a problem in the method call to selectSeat() in the 'economy' part of the code. I can't see the problem, though, as this code is identical to the code I used for the 'first class' part.
//Airline booking
//Coded by Eoghain on 16/9/07
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class AirlineApplet extends JApplet implements ActionListener {
     JButton printPass;
     JTextArea outputArea;
     String output;
     int seatType, seatNum, choice;
     boolean[] seatArray = {false, false, false, false, false, false, false, false, false, false};
     public void init() {
          Container container = getContentPane();
          container.setLayout(new FlowLayout());
          chooseType();
          printPass = new JButton ("Click to print boarding pass");
          printPass.addActionListener(this);
          outputArea = new JTextArea(40, 40);
          container.add(printPass);
          container.add(outputArea);
     public void chooseType() {
          seatType = Integer.parseInt(JOptionPane.showInputDialog("Please type 1 first First Class or 2 for Economy"));
          selectSeat(seatType);
     public void actionPerformed(ActionEvent event) {
          outputArea.append(output);
          chooseType();
     public void selectSeat(int x) {
          //argument selects between first and economy
          if (x == 1)
               if (seatArray[0] && seatArray[1] && seatArray[2] && seatArray[3] && seatArray[4])
                    choice = Integer.parseInt(JOptionPane.showInputDialog("There are no seats available in First Class. Would you like Economy? 1 for Yes, 2 for No."));
                    if (choice == 1)
                         selectSeat(2);
                    else
                         JOptionPane.showMessageDialog(null, "Next flight leaves in 3 hours.");
               else
               //do first stuff and make sure the seat is unoccupied
               seatNum = (int)(Math.random()*5);
                    if (!seatArray[seatNum])
                         seatArray[seatNum] = true;
                    else
                         selectSeat(x);
               output = "Your have seat " + seatNum + " in First Class. \n";
          else
               if (seatArray[5] && seatArray[6] && seatArray[7] && seatArray[8] && seatArray[9])
                    JOptionPane.showMessageDialog(null, "There are no seats available in Economy. Sorry.");
               else
               //do economy stuff
               seatNum = (5 + (int)(Math.random()*4));
                    if (!seatArray[seatNum])
                         seatArray[seatNum] = true;
                    else
                         selectSeat(x);
               output = "Your have seat " + seatNum + " in Economy. \n";
}Any advice would be greatly appreciated,
-Eoghain

You've created a nice little infinite loop in selectSeat here:
    if (!seatArray[seatNum])
        seatArray[seatNum] = true;
    else
        selectSeat(x);If you run out of 2nd class seats, your program isn't told to stop, it's told to just keep looking and looking and looking and looking and looking and looking and looking and looking and looking ...
and so on. Don't do this.

Similar Messages

  • Airline Reservation System

    An Airline wants to design a reservation system based on the following conditions:
    �h Each Plane has capacity of 10 seats.
    �h Applet should display the following options at the top of applet window
    ��Please type 1 for ��Non-Smoking��
    ��Please type 2 for ��Smoking��
    Note: Types 1 and 2 are inputs and this will be accepted through a text field, if person types any wrong option type (other than 1 or 2), display a message at the status bar (last bottom line of window) that ��Invalid Input��.
    �h If a person types 1, program should assign a seat in the Non-Smoking section (seats 1 to 5) of the plane
    �h If a person types 2, program should assign a seat in the Smoking section (seats 6 to 10) of the plane
    �h Use a single dimensional array to represent the seating chart of the plane and initialize all the elements of array to 0 (zero) which indicates that all the seats are available.
    �h As each seat is assigned, set the corresponding element of array to 1 which indicates that this seat is no longer available.
    Note: After proper seat assignment, display message at the bottom line of window (status bar) , for example : ��Smoking Seat # 6�� OR ��Non-Smoking Seat # 2�� etc�K
    �h Program should never assign a seat that has already been assigned.
    �h When the Smoking section of Plane is full, Program should ask the person if it is acceptable to be placed in the non-smoking section and (vice versa as well)
    Note: Display message �� Smoking is full, Non-Smoking ?��
              �� Non-Smoking is full, Smoking ?��
    If answer to any of the above question is yes, make appropriate seat
    assignment in the program.
    If answer to any of the above question is No, display the message at the
    status bar of Applet window (very bottom of window) that ��Next Fight leaves
    in 3 hours��
    Some important points to consider
    1: As this is an applet program, it will have a full Graphical and Event handling capability.
    2: Your important GUI components (use all Swing classes for GUI) in this applet program are:
    a text field for input ( 1 or 2)
    two Labels to indicate the options to user (see above 2nd bullet)
    two buttons which will be pressed in response to the questions as mentioned
    above in bullet no. 8
    Note: Please note that when your applet will start, initially these buttons will not function (make these buttons as disabled). Make them active (enabled) when either section of plane (Smoking or non-smoking) is full and you generate a message as stated above in last bullet 8.
    3: When applet will start, both buttons will be disabled and only activity on applet window will be through the input field (where user can either input 1 or 2)
    4: Please note that input text field can also be registered for action event listener as you normally do for buttons, for example.
    Therefore, when you will type 1 or 2 in the input field and press <ENTER> key, based on the event handling process, proper seat will be assigned and message will be displayed on the status bar as mentioned above in bullet No. 6.
    5: Every message will always be displayed in the status bar of applet window (very bottom line of the window)
    6: In your HTML file, use Width and Height parameters both 200 pixels.

    How is this for a start
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Reserv extends JApplet implements ActionListener
         JTextField type   = new JTextField(1);
         JTextField status = new JTextField("");
         int        sits[] = new int[10];
         JLabel     lab1   = new JLabel("Please type 1 for Non-Smoking");
         JLabel     lab2   = new JLabel("Please type 2 for Smoking");
    public void init()
         getContentPane().setLayout(null);
         lab1.setBounds(5,10,190,21);
         lab2.setBounds(5,30,190,21);
         type.setBounds(200,30,20,21);
         type.addActionListener(this);
         getContentPane().add(lab1);
         getContentPane().add(lab2);
         getContentPane().add(type);
         status.setBounds(1,180,350,21);
         status.setBackground(Color.red);
         status.setForeground(Color.white);
         getContentPane().add(status);
         status.setEditable(false);
    public void actionPerformed(ActionEvent ae)
         status.setText("");
         if (type.getText().equals("1"))
    //          findNoSmoke();
              return;
         if (type.getText().equals("2"))
    //          findSmoke();
              return;
         status.setText("Invalid Input");     
    }Noah

  • Using GetFormattedValue with Boolean Array to create ReportText

    What is the C (printf) style format for outputting a Boolean array?
    I currently use to get 
    Step.Result.ReportText = Locals.Outlets.GetFormattedValue("",0,"",False,"\n")
    Outlet State
    Status:
    Done
    Module Time:
    1.6116278
    False
    True
    False
    False
    False
    False
    False
    False  
    I would like to format the output to show:
    Outlet State
    Status:
    Done
    Module Time:
    1.6116278
    OFF
    ON
    OFF
    OFF
    OFF
    OFF
    OFF
    OFF
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

    Hi Phillip,
    interresting question, because the c-style doesnt know a datatype "boolean".
    So i am quite sure there is no support.
    You can do a simple workaround by using twice SearchAndReplace to rename True and False
    in the same expression
    Hope that helps
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=
    Attachments:
    Example.seq ‏5 KB

  • Airline Reservation System porject

    when i try to search in internet about reservation for my Aircraft Office ^_^. i get this site
    http://www.eli.sdsu.edu/courses/spring97/cs596/assignments/ass1.html
    so, can i see only the form how to will be and run it?
    i made at now the tables but i want to complete for form design with coding..
    this some sample of my tables:
    CREATE TABLE PAYMENTS
    PAYMENTID      VARCHAR2 (25) NOT NULL PRIMARY KEY,
    CREDITNO      Number (5) NOT NULL,
    EXPIREDATE          VARCHAR2 (20) NOT NULL,
    FIRSTNAME      NUMBER (8) NOT NULL ),
    LASTNAME           VARCHAR2 (20) NOT NULL,
    ADDRESS      NUMBER (8) NOT NULL ),
    CITY      NUMBER (8) NOT NULL ),
    HOMENO      NUMBER (8) NOT NULL ),
    WORKNO          VARCHAR2 (20) NOT NULL,
    MOBILE      NUMBER (8) NOT NULL ),
    EMAIL      NUMBER (8) NOT NULL );
    CREATE TABLE FLIGHTSCHEDULE
    FLIGHTNUM      VARCHAR2 (25) NOT NULL PRIMARY KEY,
    AIRCRAFTTYPE      Number (5) NOT NULL,
    FROMCITY          VARCHAR2 (20) NOT NULL,
    TOCITY           NUMBER (8) NOT NULL ),
    DEPARTTIME          VARCHAR2 (20) NOT NULL,
    ARRIVALTIME      NUMBER (8) NOT NULL );
    ^_^. thank you

    This is my Flight Form new :)
    http://img81.imageshack.us/img81/3507/airline4lf.gif
    i will try to put some codes to run it ^_^

  • To make an online interactive map that works with a reservation system which is the best application to use?

    I make campground maps and do interactive maps through a third-party program.  I want to use something in CC that I can make "hotspots" or id maps that I can interface with a reservation system to show availability.  I want the interactive map to work on both mobile and desktop.  What is my best program to download and use?
    I know html and css but have fallen in love with Muse. I am looking at the Edge Flow, Reflow and Edge Animate.  I just need some simple advice as I don't want to waste my time learning a program that doesn't do what I want...
    Thanks for any advice.

    When you do not have to have it connected to the external monitor, just use the MBP on only battery power.  Fastest would be to watch video or play a game.  Any CPU intensive application will use the battery faster that 'ordinary' use.
    Ciao.

  • Synthetic FibreChannel Port: Failed to start reserving resources with Error 'Insufficient system resources exist to complete the requested service.' (0x800705AA)

    Hello Gurus 
    i have installed windows server 2012 RTM with Hyper-V. i already created virtual machine with virtual fiber channel adapter connected to physical one. sometimes when i restart the virtual machine it gets failed to start again and the following error appears
    in the event viewer of the host:
    error id 21502
    'Virtual Machine xyz' failed to start.
    'xyz' failed to start. (Virtual machine ID number)
    'xyz' Synthetic FibreChannel Port: Failed to start reserving resources with Error 'Insufficient system resources exist to complete the requested service.' (0x800705AA). (Virtual machine ID
    number)
    'xyz': Operation for virtual port (C003FF18F98C000E) failed with an error: No physical port available to satisfy the request (Virtual machine ID
    number).
    error id 1069
    Cluster resource 'Virtual Machine xyz' of type 'Virtual Machine' in clustered role 'xyz' failed. The error code was '0x5aa' ('Insufficient system resources exist to complete the requested service.').
    Based on the failure policies for the resource and role, the cluster service may try to bring the resource online on this node or move the group to another node of the cluster and then restart it.  Check the resource and group state using Failover Cluster
    Manager or the Get-ClusterResource Windows PowerShell cmdlet.
    appreciate your help
    Ashraf

    Dear All,
    Subject : Need to create a file cluster
    in Guest Vms (Host machine : Windows 2012 R2), using MSA p2000 strorage with HBA Qlogic (HP 8Gb PCIe Host Bus Adapter)
    Note: It's a direct connection from HBA to HP MSA p2000 (No SAN switch in between)
    Currently I am using Qlogic HBA (HP
    81Q 8Gb 1-port PCIe Fibre Channel Host Bus Adapter- Part No. AK344A).
    Unable to create vPort using  Microsoft
    Hyper-V (Win 2012 R2) & secondly using QConverge
    Console utility.
           When trying to create  Microsoft
    Hyper-V (Win 2012 R2), I received the below error.
    Secondly, when I am trying to create vSAN switch in using Qlogic QConverge Utility the above error is popup. 
    Currently I am using the following latest version of Qlogic Firmware & Drivers...
    HBA - Running Firmware Version:  7.00.02
    HBA - Driver Version:  STOR Miniport 9.1.11.24
    If any body the same issue, Please could you update me as earliest.
    Regards,
    Mirza

  • Integration with Lotus Notes 8.5 - Room Reservation System to Add Approval Steps

    I have implemented several LiveCycle Forms with Some Workflow all
    based on XML and .NET. All working fine.
    Now, I have a new project (yet to be approved) which is to add
    Workflow and Approval Steps for Lotus Notes Room Reservation System.
    The current system on Lotus Notes, is out-of-the-box from Lotus, and
    it is working very well, and it has great repeat option to setup the
    required schedule to make the needed room reservation system.
    The user now requested to add some new features like add 2 more
    approval steps, and some new fields.
    I can modify the application in Lotus Notes, but this will creat a new
    problem. If there is new version coming for this system from Lotus
    Notes, then I will have to sync the modifications I did, and it will
    be a problem.
    I have put some screen shots to help understand what we are talking
    about:
    https://docs.google.com/leaf?id=0B97clwYte2SHYmUyZTRiZDEtZWRjZS00YmQ3LTg1MDUtM2MxNmYyYTIzM 2Ix&hl=en
    I have developed several programs in the past, I was able to connect
    to Lotus Notes Database from .NET.
    My plan is to develop the new Form in Adobe LC Desinger, with all the
    new required features, and connect to what ever existing functions/
    data to Lotus Notes (in both directions).
    The only thing I need help for is how to capture the Repeating
    Calendar Entry. I think this will take some effort. Becuase, once I
    capture all input parameters, I have to call a Web Service (in .NET)
    to get a list of Free Rooms to choose from.
    Here are my questions:
    1. Do you have any feedback on the above ?
    2. Any one has done any work to capture a repeating calendar entry in
    a PDF Form ?

    Hi Anil
    For Lotus notes integration with SAP solutions, pl check the following links:
    http://www.redbooks.ibm.com/redpieces/pdfs/redp4215.pdf
    http://www-306.ibm.com/software/info/ecatalog/en_US/products/Z262246B25186K14.html
    Best regards
    Ramki

  • There should be a way to index an array with an array of indexes or booleans (without a loop)

    Hi, often I would love to index an array with an array of indexes or an array of booleans without having to loop it.  I.e: let the IndexArray function accept an array of indexes instead of discrete indexes.  The output should then be an array of indexes values.  
    Another use case is to index with an array of booleans, so each TRUE element would index the input array and FALSE elements are not indexed.
    arrResult = arrInput[ arrIndexes ];  or
    arrResult = arrInput[ arrVal > 20 ];
    Would this be useful? Possibly it could be implemented in future versions?

    You forgot the link.

  • Control of 96 switches independently with a 2d Boolean array

    I have an application that I need to change the state of individual switches in a 2d Boolean array.
    Does anyone have a simple solution???

    Replace Array Subset.

  • How to check connection from SAP to reservation system?

    Dear Experts,
    May I know how to check whether the connection between SAP and the reservation system has been set up and ready to use?
    Thanks.

    Hi
    You need to check the identification code issued to the enterprise by AMADEUS must be entered in the R/3 Customizing for Travel Planning under Master Data u2192 Control Parameters for Travel Planning u2192 Define sales offices and Define API access parameters.
    External reservation system In the Travel Planning subcomponent Travel Management accesses an external reservation system connected to R/3 to carry out the queries on available travel services and to book the selected services. The reservation system currently available is the AMADEUS Global Travel Distribution system.
    For more information, see Technical Prerequisites for Travel Planning--
    Technical Prerequisites for Travel Planning
    Before you can use Travel Planning fully, a number of internal R/3 and external prerequisites or settings must be fulfilled.
    Connection to an External Reservation System
    The online booking function in Travel Planning is based on the cooperation with external reservation systems that are used to communicate with the service providers. The R/3 user has access to the following functions via the connection to an external reservation system:
    u2022 Availability query of travel services
    u2022 Transfer of additional information about selected travel services
    u2022 Price information
    u2022 Processing of reservation by the respective provider
    u2022 Synchronization of the data in SAP Travel Planning if external booking changes have been made
    In the current release the external reservation system in use is AMADEUS Global Travel Distribution. AMADEUS is a subsidiary of Lufthansa, Air France, Continental Airlines and Iberia. The reservation system it provides is in worldwide use and 160,000 terminals in 37,000 travel agencies and ticket sales centers in over 130 countries are connected to it.
    In order to carry out online booking via AMADEUS the following must have been carried out:
    u2022 Your enterprise must have signed an agreement with AMADEUS for the use of the interface and be registered at AMADEUS with a user ID
    u2022 A network connection to the AMADEUS computer center must have been opened
    u2022 The identification code issued to the enterprise by AMADEUS must be entered in the R/3 Customizing for Travel Planning under Master Data u2192 Control Parameters for Travel Planning u2192 Define sales offices and Define API access parameters.
    For questions about registration, contact the SAP & AMADEUS Competence Center:
    SAP & AMADEUS Competence Center ACC 02 Neurottstrasse 16 69185 Walldorf Germany
    Cheers
    Mukta

  • Updating a JTable with an array of values

    Ther is a constructor that allows for the cretion of the table with an iniital array of values. However subsequent updates of blocks of data- say you received an array of updated data form a database- reuiqre you to update ince cell at a time. Is ther any way fo updating a whole block at once. I should point out that I am asking this because I am using JTables in the Matlab programming environment where arrays are the basic unit and looping through is a comparatively slow process

    Yes, you can extend the AbstractTableModel and write a method for updating a whole block.
    lets say you've got a Vector with Float[] arrays as elements to hold a 2D array of Float. The you could write:
          TableModel dataModel = new AbstractTableModel() {
                public int getColumnCount() { return col_names.size(); }
                public int getRowCount() { return data.size();}
                public Object getValueAt(int row, int col) {
                   return ((Float)((Float[])data.elementAt(row))[col]).toString();
                public String getColumnName(int col) {
                 return ((String)col_names.elementAt(col));
                public Class getColumnClass(int col) {
                 return String.class;
                public boolean isCellEditable(int row, int col) {
                  return true;
                public void setValueAt(Object aValue, int row, int col) {
                   try {
                     Float fv = Float.valueOf((String)aValue);
                    ((Float[])data.elementAt(row))[col] = fv;
                   } catch (Exception ex) {
                public void setBlock(Float block[][], int row, int col) {
                   // copy the Arrays with System.arrayCopy into data
          };PS: I don't know, if the above is correct written, havn't test this. But I hope you can recognize the idea behind it.
    wami

  • NSArray for boolean array, define size...

    Hi!
    I have a Class that I'm trying to create...
    The class have a boolean array that I define the size when the class initialize...
    I put an NSArray in the .h file and I try to define the size of the array on initialisation based on a formula with the parameters for the init method.
    I'm so new to Objective-C, I try to do that the same way I did it in C#..:S
    What should I do?
    Where Can I find information about class definition and sample with int or bool array?
    Thanks!
    Fred

    ShrimpBoyTheQuick wrote:
    Hi!
    I think I understand something here..
    In C, I cannot put an unsized array in the .H file and set the size in the init method in the .m file...
    Kinda true, but you can dynamically allocate memory at runtime to hold an array of whatever size you want.
    What I can do is....
    Define a pointer and a size in the .h file...
    Create an array of the good size in the .m file and put the memory address of the array in the pointer and use this array with the pointer and the size value...
    I don't think the code you posted will work right. I believe the "roomArray" that you're creating inside "initWithWidth" is a local variable that will go away once you exit the "initWithWidth" method. So even though you've stored a pointer to it in "arrayPtr" ultimately you'll be pointing at garbage once that memory gets reclaimed and reused by the runtime system.
    What's my problem after this is how do I tell the object to not used the memory of this array after the method is finished?
    Take a look at this discussion of dynamically allocated arrays in C. Basically you'll use malloc() to allocate memory for your array and then later use free() when you no longer need the array. And since you're dealing with width and height you're needing a two dimensional array which becomes somewhat messier.
    Steve

  • Flight Reservation System

    hello guys can any expret help me to do my project the dead line is sunday
    please help [email protected]
    NOTE:the program is just simple input output throw ms-dos
    thank you :D
    Project Description
    This project is about developing a software for flight reservation system. This program uses three classes Flight, RouteInfo and Passenger.
    Flight class:
    Instance variables
    flight number
    name of airline
    day of flying
    Constructor
    Initializes instance variables
    Methods
    getFlightNumber()
    getNameOfAirline()
    getDayOfFlying()
    setFlightNumber()
    setNameOfAirline()
    setDayOfFlying()
    toString()
    Passenger class:
    Instance variables
    computernumber
    name
    telephone
    source
    destination
    day of Flying
    Constructor
    Initializes name and telephone
    Methods
    getName()
    getID()
    getSource()
    getDestination()
    getDayOfFlying()
    setName()
    setID()
    setSource()
    setDestination()
    setDayOfFlying()
    toString()
    RouteInfo Class:
    Instance variables
    flight number
    source
    destination
    Constructor
    Initializes instance variables
    Methods
    getFlightNumber()
    getSource()
    getDestination()
    setFlightNumber()
    setSource()
    setDestination()
    toString()
    The program reads the following information from the file Flight.txt and creates array of Flight objects and initializes it. This is a fixed array.
    Flight.txt
    SV707#Saudi Arabian Airlines#Friday
    SV611#Saudi Arabian Airlines#Monday
    SV555#Saudi Arabian Airlines#Saturday
    GA111#Gulf Air#Tuesday
    GA222#Gulf Air#Monday
    GA333#Gulf Air#Wednesday
    EA523#Egypt Air#Sunday
    EA555#Egypt Air#Thursday
    The program reads the following information from the file Routes.txt and creates array of RouteInfo objects and initializes it. (For simplicity, leave the item Time of flying)
    Routes.txt
    SV707#Dammam#Madina
    SV707#Madina#Dammam
    SV611#Madina#Jeddah
    SV611 #Jeddah#Madina
    SV555#Dammam#Jeddah
    SV555#Jeddah#Dammam
    GA111#Jeddah#Bahrain
    GA111#Bahrain#Madina
    GA222#Bahrain#Jeddah
    GA222#Madina#Bahrain
    GA333#Bahrain#Taif
    GA333#Taif#Bahrain
    EA523#Cairo#Madina
    EA555#Madina#Cairo
    The program has the following commands:
    Command Purpose
    s Search availability: This needs parameters: the day, source and destination, and list all the flights available for the given criteria.
    For example:
    To search all flights on Friday from dammam to madinah: s f dammam madinah
    b Book a flight: This needs passenger info, source destination and day of flying, reserves the seat and generate a unique computer number if the seat is available. Modification done in Passenger array itself.
    For example:
    b Ali,Muhammad Hasan 050889977 dammam madinah f
    means the system is trying to make a reservation for Muhammad Hasan Ali,
    phone 050889977 from Dammam to madinah on Friday.
    z List all passengers name (based on source & destination): This should List Flights name and passengers name based on given source & destination.
    For example:
    To know passengers who have booked in a flight SV707 from dammam madinah:
    z sv707 dammam madinah
    c Cancel Booking: This should cancel a booking by reading passenger info, source destination and day of flying OR by reading a computer number only. Modification done in Passenger array.
    for example:
    c 1234567
    c Ali,Muhammad Hasan 050889977 dammam madinah f
    t Add new route: This should add a new route in the RouteInfo array by reading flight number, source & destination. This new route also will be appended into the file Routes.txt
    For example:
    t SV555 Dammam Tabuk
    f Add new Fleet: This should add a new entry in Flight array and will be appended into the file Flight.txt
    For example:
    f SV0285 Saudi Arabian Airlines; Wednesday
    q Exit

    hello guys can any expret help me to do my project
    the dead line is sunday
    please help [email protected]
    well, I'll give you credit for a clever nick. But really - I'm working on almost the same thing here
    http://www.answers.com/topic/global-air-transportation-execution-system
    And I've got a deadline of July, but somehow I don't think the project manager would take it too well if I suggested that my plan should involve begging someone out on the java fora to do the project for me.
    But come on - you have until Sunday! That's way longer than I had when I blew off my assignments in college, and I still managed to turn something in. Just pick up some caffeine and spend some time writing out things on paper and you'll get it, no worries. And if you run into specific coding troubles then post here and someone will likely help you out.
    Good Luck
    Lee

  • Airline automation system

    I am very confused as to how to start this problem.
    please help me.
    A small airline has just purchased a computer for its new automated reservations system. You have been asked to develop the new system. You are to write the application to assign seats on each flight of the airline�s only plane which has a capacity of 10 seats.

    I am very confused as to how to start this problem.
    please help me.Using what you learned so far (You have been going to class, reading the textbook, and actually thinking about what's been covered, right?), take your best shot. Post what you've got, along with details about what in particular is giving you trouble.
    If you have no clue where to start at all, you should speak to your instructor or engage the services of a private tutor. These forums are not a good venue for that sort of thing.
    When you post code, please use[code] and [/code] tags as described in Formatting tips on the message entry page. It makes it much easier to read.

  • How can I add a True value to position (0,1) in a 2*2 boolean array?

    Hi everyone, let's say I have a 2*2 boolean array (Indicator), how can I let the element in position (0,1) for example be true??
    Thanks.
    T. A.
    Solved!
    Go to Solution.

    Hi T.A.,
    1) ReplaceArraySubset with indices 0&1 and element=TRUE.
    2) OR Array with an array constant of [(F,T),(F,F)]
    Message Edited by GerdW on 11-23-2009 03:22 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

Maybe you are looking for

  • Daylight saving & Clock App

    In Australia we have just switched to daylight savings time and my 3G iPhone running version 4.1 change the internal clock perfectly. The odd thing is that the alarm function in the standard clock App supplied with the phone, is going off an hour ear

  • Cheque Print

    Dear All, Please resolve my issue. Senario: Business want to print cheque for advances payments, T-code: F-48 vendor advance payment. FBZ5 cheque is created for the same. Here system not allowing to print the cheque. Message: You cannot print the man

  • Disable Form Field

    I have created a form that is a mathematical worksheet. There are 3 types of fields: (1) fixed value, (2) user entry and (3) calculated results. In order to make the calculated result fields stand out their style is set to BOLD RED. The fixed value a

  • Missing hierarchy by downloading DNL_CUST_PROD1

    Hi All, I´m very new to the installation and configuration of a SRM sytem using the self service scenario. So, I have to apologise for my following question.According to this I have to set up a self service scenario with EBP 4.0 and SRM 3.0. So, here

  • Making atabase clone (but without data=rows) from hot-backup

    Hi, I am newbie in Oracle administration. I am using Oracle 10g database. I would like to clone database i.e. make an exact copy of tablespaces, tables, indexes, triggers, functions etc. but without data. What is the most efficient way to do it.? I a