subject
Engineering, 29.02.2020 05:23 hihihi129473838

8.19 - Airline Reservations System (Project Name: Airline) - A small airline has just purchased a computer for its new automated reservations system. You have been asked to develop the new system. You’re to write an app to assign seats on each flight of the airline’s only plane (capacity: 10 seats). Display the following alternatives: Please enter 1 for First Class or 2 for Economy. If the user types 1, your app should assign a seat in the first-class section (seats 1–5). If the user types 2, your app should assign a seat in the economy section (seats 6–10). Use a one-dimensional array of type bool to represent the seating chart of the plane. Initialize all the elements of the array to false to indicate that all the seats are empty. As each seat is assigned, set the corresponding element of the array to true to indicate that the seat is no longer available. Your app should never assign a seat that has already been assigned. When the economy section is full, your app should ask the person if it’s acceptable to be placed in the first-class section (and vice versa). If yes, make the appropriate seat assignment. If no, display the message "Next flight leaves in 3 hours."

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:20
Find the minimum film thickness for a journal bearing with the data below. shaft diameter, d-50 mm, clearance ratio, cdratio? 0.001, shaft speed, n 2000 rpm; bearing length. i 200 mm; eccentricity ration, ? -0.55. ( note, cdratio-ca/d) the minimum film thickness is um
Answers: 2
question
Engineering, 05.07.2019 23:20
Which one of the following faults cause the coffee in a brewer to keep boiling after the brewing cycle is finished? a. an open circuit in the heating element b. a short circuit at the terminals c. welded contacts on the thermostat d. a leak around the gasket
Answers: 3
question
Engineering, 06.07.2019 03:10
List and describe the attached tools in boxford cnc milling machine? and how many tools were used in your projects explain them?
Answers: 3
question
Engineering, 06.07.2019 04:10
Cold water (cp=4180j/kg k) leadıng to a shower enters a thin-walled double-pipe heat transfer at 15c at a rate of 0.25kg/s and is heated to 45c by hot water (cp=4190j/kg k) that enters at 100c at the rate of 3kg/s. if the overall heat transfer coefficient is 950w /m2 k , determıne the rate of heat transfer and the heat transfer surface area of the heat exchanger using e - ntu method
Answers: 1
You know the right answer?
8.19 - Airline Reservations System (Project Name: Airline) - A small airline has just purchased a co...
Questions
question
Mathematics, 29.11.2021 06:10
question
Mathematics, 29.11.2021 06:10
question
Mathematics, 29.11.2021 06:10
question
Mathematics, 29.11.2021 06:10
question
Mathematics, 29.11.2021 06:20
question
English, 29.11.2021 06:20
Questions on the website: 13722367