subject

C++ Can someone please please please help me write this code? The lab is due tonight and it just makes no sense! Thank you so much

Airline Reservation System Write a program that uses two 10 element single dimension char Arrays to represent the seats of a small plane. One array will represent the seats on the left side of the plane, seats A. The other array will represent the seats on the right side of the plane, seats B. The arrays should be created at the start of the program in main. You will be required to pass the arrays to the other functions. The main function should provide the available options (a main menu) which include adding a new reservation, seeing a visual seating chart of available seats, or resetting the reservation system. Each operation should be run in a separate function. You should determine how the menu system should look so that it is clear and user friendly. After each operation of the reservation system is run, the main menu should be displayed again. Remember, the main function controls program flow, it does not perform any of the operations. Resetting the Reservation System This method should initialize both arrays to β€˜O’ to indicate that the seats are available. This method should run when the program first starts and it should be included in the menu so the user has the option to clear all reservations. Adding a new reservation: When adding a new reservation, this system should ask if the seat should be assigned in First Class or Coach. The first 3 rows are first class and rows 4 – 10 are Coach. The system should then locate an available seat in the desired section and assign an β€˜X’ to the array and output where the seat was assigned. The system should make sure the seat is not already assigned before assigning the seat. The user does NOT select the seat. Once a seat has been assigned, the seating assignment should be displayed. Seat assigned on Row 2 Seat A If no seats are available in the desired section, indicate that there are no available seats.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 22:00
Is the process of organizing data to reduce redundancy. a. normalization b. primary keying c. specifying relationships d. duplication
Answers: 1
question
Computers and Technology, 24.06.2019 22:10
How many different ways are there to order the eight jobs in the queue so that job usu comes somewhere before cdp in the queue (although not necessarily immediately before) and cdp comes somewhere before bbd (again, not necessarily immediately before)?
Answers: 1
question
Computers and Technology, 25.06.2019 03:40
Acurrent vehicle registration expires at of the first owner listed on the registration form. a. stretch and flex b. bend and break c. wear down d. bounce around
Answers: 1
question
Computers and Technology, 25.06.2019 10:20
(programming exercise 3-10). a retail company must file a monthly sales tax report listing the total sales for the month, and the amount of state and county sales tax collected. the state sales tax rate is 4 percent and the county sales tax rate is 2 percent. design a modular program that asks the user to enter the total sales for the month. from this figure, the application should calculate and display the following: - the amount of county sales tax - the amount of states sales tax - the total sales tax (county plus state) some of the code has already been provided below. complete the missing code below. // global constants for tax calculations constant real county_tax_rate = .02 constant real state_tax_rate = .04 // main module module main() // local variables declare real monthsales, countytax, statetax // get month sales display β€œenter monthly sales: ” input monthsales // write the statement to calculate county tax // write the statement to calculate state tax // display tax amount call showtaxes(monthsales, countytax, statetax) end module // the showtaxes module accepts monthsales, countytax, statetax // as arguments and displays the resulting data // write the showtaxes module
Answers: 2
You know the right answer?
C++ Can someone please please please help me write this code? The lab is due tonight and it just m...
Questions
question
English, 08.12.2021 18:50
Questions on the website: 13722360