Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

C# Create a Windows Forms Application Provide screenshots please! For this week's assignment , create and complete a Windows application for the following question. Airline

C#

Create a Windows Forms Application

Provide screenshots please!

For this week's assignment , create and complete a Windows application for the following question.

Airline Reservation System: An airline has just bought a computer for its new reservation system. Develop a new system to assign seats on the new airplane( capacity: 10 seats)

Display the following alternatives: "Please type 1 for first class, and please type 2 for Economy". If the user enters 1, your application should assign a seat in the first class( seats 1-5). If the user enters 2, your application should assign a seat in the economy class( seats 6-10).

Use a one-dimensional array of 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 program should never assign a seat that has already been assigned. When the economy section is full, your program should ask the user if he would like to be placed in the first class, and vice-versa. If yes, make the appropriate seat assignment. if no, display the message, " Next flight leaves in 3 hours".

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started