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.

Similar Messages

  • How can I export my configuration from MAX to another automation system through NI-DAQmx

    Hi,
    has someone of you an idea how i can export my configuration from MAX to another automation system through NI-DAQmx?
    We created a dll for the communication between the AUSY (not LabVIEW) and NI-DAQmx. The export file .nce is not in ascii format, so we can't use it or is there a way of solving our problem with it?
    Thanks for helping me
    Eddy

    I recently came across this, does it help at all?
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E7E556A4E034080020E74861
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • TAS(Terminal Automation System) interface with SAP

    Hi All,
    kindly suggest procedure to establish the interface between the TAS(terminal Automation System) and SAP in SAP SD delivery processing.
    i am furnishing details below
    terminal Automation System is third party software(legacy) which is used in loading of Hydrocarbons in Truck Tanker,it will capture the details like
    material
    product code
    product quantity
    we require the loaded quantity which is  loaded into Truck tanker using the TAS(terminal Automation System) as picked quantity in SAP SD delivery process automatically.
    thanks in Advance

    Hi Sathya,
    Once, we had a similar requirement.
    To get attendance system records into SAP only for reporting purposes, we defined a Z-table.
    Then we transferred the data from the attendance system database table into respective SAP Z-table via some RFC calls (we tied these RFCs to job so that they were executed every day).
    Then we made the reporting on this Z-table accordingly.
    Nothing in time management infotypes changed.
    Regards,
    Dilek

  • Automated system maintenance timing

    iMac early 2008, 2GB RAM, 2.8GHz processor, HD 320 GB total, 225GB available, OS 10.6.8
    Whilst researching various causes for a Mac running slowly, I came across the statement that automated system maintenance procedures are scheduled by default to occur in "the early morning" hours, provided that the computer is running 24/7.  If I were to leave my computer on, it would go into sleep mode, as would I, during these early morning hours (assuming this to mean 1am etc.). Do the automated processes indeed occur in the 1am range and if so, will they happen if the computer is in sleep mode?

    Sorry that you feel that precision is not required in dealing with a modern
    operating system, and that the obsolete answer appears to fit your ideas
    on how to maintain a Mavericks system when compared to an older one.
    On more than one occasion, advice has been suggested without bearing.
    So be it with your interest in getting an answer that fits Mavericks 10.9
    since the factors that did change for this new system, are not addressed
    by the reply you sought to include as a correct response.
    And, I also gave you a bonus tip on a historically correct (to Mavericks)
    source of content that can be used with Mavericks for issues of a slow mac.
    Too bad I wasted some time and research, on your behalf. If I weren't
    working for free, I'd bill you double, and offer you to try a retail product.
    Your understanding of an answer has not been helpful to a resolution.
    However it does appear you did not read the link that supports my point:
    This is current to Mavericks, cited by Pondini as of now:
    On Snow Leopard 10.6.x and Later, if your Mac is powered-on but sleeping
    during those hours, the scripts will run shortly after it awakes.
    If you do not want current information on OS X 10.9.5, why ask and
    accept info that was OK prior to Lion 10.7.5 & think that's current??
    Is english your first language? I can try google translate if it helps...
    Good luck and happy computing!

  • 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.

  • Final Year University Project - School Automation System

    Hello All,
    Im going to choose a framework for my Final Year Project. I
    actually intended to make a Desktop Application which will have
    nothing to do with online stuff. It will be a data aware
    application lets suppose a "School Automation System" like records
    of students, performance, results, teachers, salaries etc.
    Now i have two options only
    First to Choose Adobe AIR, as i feel comfortable enough to
    work with Adobe Flex and Actionscript 3.
    Second Choice is, Java, Which will take extra time for
    learning etc.
    So i want to ask you guys to suggest me whether Adobe AIR is
    suitable for me or not?
    I just want to built a data aware application, nothing to do
    with hardware interfacing etc.
    So do you guys think that Adobe AIR can be used to make a
    database application which will have records in GBs?
    What kind of limitations are here?
    Thanks a lot for your concern

    Hey manofspirit,
    Dude, It is a no brainer at all...stick with Adobe Air which
    certainly allows integration with other technologies. Air is hot
    and even getting hotter, pretty soon all the INDIAN H1Bs will jump
    on this band wagon as well.
    AIR is here to stay with capabilities that can not be seen as
    visual bells and whistles.. I have been in the industry for longer
    than a decade with Java under my belt, but now seeing how Verizon,
    At&t, and some other big players are tuning to ADOBE AIR/FLEX.
    AIR is the future. Java is good to know, and it wouldn't be
    hard to pick Java along the way. You just gotta be patient.
    Thanks.

  • Automated system and black set boxes

    I have always been an advocate for FIOS.  I have persuaded many friends to become customers.  This being said, Verizon has majorly let me down in the past month.  First, I am frustrated that I can not get a silver set box.  The new black boxes are awful.  There's no reason we should continue to pay more for service and get inferior equipment.  A set box should have display capabilities.  The other major problem is the new automated phone system.  I have had to call a couple of times in the past couple of days.  The automated system drives me crazy.  I don't want to spend a couple of minutes talking to a machine - only to have my problem still not resolved.  Give us real people off the bat.  Think of ways to serve your customers not frustrate!

    cgcraig,
    We are sorry about your experience with this issue.  Please let us know if the issue has been resolved or if you still have concerns.
    Thank you,
    Tonya D.

  • 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

  • Automator, System Preferences, and Permissions

    I've just bought this MacBook Pro, and I'm setting up the Guest account. I live in University accomodation, so the internet connection requires you to enter a name and password to use the internet connection. I'm trying to use Automator in conjunction with System Preferences to configure the Guest account to open the internet-login URL and display a Growl sticky notification (http://growl.info/about.php) with the login details when someone logs in to the Guest account.
    I made a simple Workflow in Automator, telling it to show a Growl sticky notification with the login details, and then to open the URL, when run. I saved it as an application called "Internet" in the Guest account's Sites folder (HD>Users>Guest>Sites). I made Guest the owner of the application, in a group called Guest, and made the application read-and-writeable at all three levels. I then made the application available to the Guest account in the Parental Controls for the Guest account. Finally, I logged into the Guest account and made the application a Login Item in the account's preferences.
    However, when I open the application from within the Guest account, I get a momentary flash of an alert saying an AppleScript error of type -10862 has occurred, of which I can fin no mention anywhere on the internet. Curiously, it works fine from within my account.
    Any suggestions?

    I've just bought this MacBook Pro, and I'm setting up the Guest account. I live in University accomodation, so the internet connection requires you to enter a name and password to use the internet connection. I'm trying to use Automator in conjunction with System Preferences to configure the Guest account to open the internet-login URL and display a Growl sticky notification (http://growl.info/about.php) with the login details when someone logs in to the Guest account.
    I made a simple Workflow in Automator, telling it to show a Growl sticky notification with the login details, and then to open the URL, when run. I saved it as an application called "Internet" in the Guest account's Sites folder (HD>Users>Guest>Sites). I made Guest the owner of the application, in a group called Guest, and made the application read-and-writeable at all three levels. I then made the application available to the Guest account in the Parental Controls for the Guest account. Finally, I logged into the Guest account and made the application a Login Item in the account's preferences.
    However, when I open the application from within the Guest account, I get a momentary flash of an alert saying an AppleScript error of type -10862 has occurred, of which I can fin no mention anywhere on the internet. Curiously, it works fine from within my account.
    Any suggestions?

  • Automating System Preferences in Sound?

    Hello All-
    I am going out of my mind. I am trying to be able to toggle the output of my sound preferences back and forth between my Line Out and my M-Audio Firewire Solo. I do this multiple times a day. It would be great if I could hot key a way to do it or at least get the Automator on boeard. Any help?
    Thank.
    Paul

    I agree wholeheartedly with Ric about the UI Browser suggestion and in fact you can use it to start looking for attributes of those GUI items which can be used for developing your "if then thing".
    I have also found that using the repeat loops instead of the delays tends to help with reducing some of the problems of transferring scripts to other computers. UI Browser was also invaluable in finding the attributes required for the repeat loops.
    Here is a further development of the scripts that have already been provided. I have assumed that your two output options are on row 1 and row 2 of the list. If they are not then there are two options:
    1) if they will always be found in the same location in the list then just change the row numbers in the "if then" clause;
    2) if they are not always found in the same location because you have other output options which come and go then there will have to be some further checking. This is possible but I did not add it here because of the added complexity. Let me know if you need it.
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">tell application "System Preferences"
    activate
    set current pane to pane "com.apple.preference.sound"
    end tell
    tell application "System Events"
    tell process "System Preferences"
    click radio button "Output" of tab group 1 of window "Sound"
    repeat until (value of radio button "Output" of tab group 1 of window "Sound") is 1
    end repeat
    if (selected of row 1 of table 1 of scroll area 1 of tab group 1 of window "Sound") is true then
    select row 2 of table 1 of scroll area 1 of tab group 1 of window "Sound"
    repeat until (selected of row 2 of table 1 of scroll area 1 of tab group 1 of window "Sound") is true
    end repeat
    else
    select row 1 of table 1 of scroll area 1 of tab group 1 of window "Sound"
    repeat until (selected of row 1 of table 1 of scroll area 1 of tab group 1 of window "Sound") is true
    end repeat
    end if
    end tell
    quit
    end tell
    </pre>
    PowerBook 12"   Mac OS X (10.4.6)  

  • Automating system settings in FCP 7 using Automator

    Hi all,
    I feel like a child writing this, but anyways...
    Trying to write an Automator macro to streamline resetting my autosave folders in Final Cut Pro, since I change them everytime I switch to another project (to simplify backup). There are 4 different things that have to be changed when I do this. Since they all go to the same location. I figured I should only set this once and let the Mac do the rest.
    What I have already done is have the script ask me for the file location (e.g. "/Volumes/Backup1-A/EOTN/FCP files/") and I afterwards "Set Value of Variable" as "FCPPath". Then I recorded myself switching to Final Cut, hitting a hotkey to bring up the System settings window, click the first option, and when Finder pops down, I hit "/" for the "Go to Folder" option. Here is where I am stuck.
    I am totally lost (and a little frustrated, so pardon my hostility). All the Finder modules don't apply to an "in-application" finder window.
    The idea of a simple "Write blank as text" option in Automator has thusfar eluded my simple mind. So I first use a "Get Value of Variable" from "FCPPath". Then I pass that to a "Run AppleScript" module. However, any command (write, display, type,) doesn't want to work. I am stuck thinking it should be as easy as:
    on run {FCPPath}
      write FCPPath as text
              return FCPPath
    end run
    But I get generic error messages telling me to check my processes.
    Could anyone direct me how to write the value of a variable (containing a file path) into the "Go To folder" text field within a "Save as" dialog box in FCP?
    Thank you!

    Just a bump.

  • Help with automating "System Update"

    edit:
    please help - who do I contact in Lenovo / IBM to get real help with this ?
    this is a corporate project and I need to resolve this as soon as possible.
    does anyone from Lenovo actually read this forum?
    I've opend a support call in Lenovo's helpdesk (via email) but no reply except an automated one for... like a week.
    help! help! help! we don't mind paying for it, we NEED to resolve this.
    any help at all would be greatly appretiacted. please point me at the right direction?
    sorry for this venting but really, I just need to get a move on this already... :-0
    can anyone at all help ?
    any idea where I can find more information / expert assistance ?
    thanks for any help...
    -Shay
    Hi,
    I've been able to fully automate System Update distribution using Group Policy. this works perfectly.
    I am now trying to achive the same functionality using scritps.
    the problem: I get quite a few prompts for "License Agreement" - not the "master" initial one, only a few for the different installs.
    here's my setup:
    1. a local server is the repository.
    2. I import a .reg file before installing "System Update" using an automated install.
    3. after a restart, a command runs on the local machine.
    here are the details:
    registry settings:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Lenovo\System Update]
    "LanguageOverride"="EN"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Lenovo\System Update\UserSettings\General]
    "IgnoreLocalLicense"="YES"
    "DisplayLicenseNotice"="NO"
    "DisplayLicenseNoticeSU"="NO"
    "ExtrasTab"="NO"
    "RepositoryLocation1"="***my internal server here ****"
    "RepositoryLocation2"=""
    "RepositoryLocation3"=""
    "NotifyInterval"="36000"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Lenovo\System Update\UserSettings\Scheduler]
    "SchedulerAbility"="YES"
    "SchedulerLock"="LOCK"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Lenovo\MND\TVSUAPPLICATION]
    *** network drive mapping here, this part works ***
    also, I use this command to run the updates:
    call "C:\Program Files\Lenovo\System Update\tvsu.exe" /CM -search A -action INSTALL -IncludeRebootPackages 1,3,4 -noicon
    I am just about desperate... I would REALLY REALLY appreciate any help, hint etc :-)
    Thanks for ...even trying... lol
    regards,
    Shay
    Message Edited by catman2u on 03-18-2008 05:04 AM
    Message Edited by catman2u on 03-25-2008 02:41 AM

    catman2u wrote:
    does anyone from Lenovo actually read this forum?
    From the Communiy Rules in the Welcome section....
     Objectives of Lenovo Discussion Forums
    These communities have been created to provide a high quality atmosphere in which users of Lenovo products and services may share experiences and expertise. While members from Lenovo may participate at intervals to engage in the discussions and offer advice and suggestions, this forum is not designed as a dedicated and staffed support channel. This is an informal and public forum, and Lenovo does not guarantee the accuracy of information and advice posted here -- see important Warranty information below.
    No amount of ranting is going to get you anything more than you will achieve with a clear exposition of your issue... so you might want to try doing that instead of ranting and assuming that everyone already knows what you know etc etc.
    Cheers,
    Bill
    I don't work for Lenovo

  • Needed help with Automator - System Prefs

    Hi,
    I'm hoping to make an automator workflow that changes some system preferences that I have to change frequently in switching between a work computer and media center.
    When it's used as a media center it's setup with a lower resolution to match the TV and the energy settings and screensaver are set to never be used when in media center mode.
    Is there a way to use automator or even apple script to change the resolution, energy, and screensaver settings back to my normal settings?
    I tried using the record option in Automator but it doesn't seem to recognize anything specific at all.
    Could someone please help me set this up?

    See http://discussions.apple.com/thread.jspa?threadID=2039384 and Introduction to Automator tutorial at http://automator.us/leopard/video/index.html

  • HT4515 How do I use the phone keypad to enter letters from a password instead of numbers  when prompted by an automated system?

    All help welcome thanks!

    BibiQueen wrote:
    I'm pressing numbers twice, holding them down, and otherwise trying to type a letter and it's not working.
    Well, you don't do that. Example: You want to dial SPAM, all you do is press 7726, that's it. The system will know you mean SPAM.

  • Automation System Engineer - Labview

    Dear All,  I hold a Bachelor degree of Mechatronics Engineering and I have a B1 visa valid to 2013
    I have good experience which I gained during my study besides working in good companies.   
    Best Regards
    Eng. Mahmoud Alshair
    Mahmoud Alshair
    Intelligent Systems Integrator ( ISI )
    System Developer
    Attachments:
    Mahmoud Alshair CV.doc ‏97 KB

    Who wants to bet that people will post their resumes in this thread?

Maybe you are looking for