Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE PROGRAM IN C LANGUAGE ONLY THANK YOU Q1: (Airline Reservation System)(35points) A small airline has just purchased a computer for its new automated reservations

image text in transcribedimage text in transcribed

PLEASE PROGRAM IN C LANGUAGE ONLY THANK YOU

Q1: (Airline Reservation System)(35points) A small airline has just purchased a computer for its new automated reservations system. The president has asked you to program the new system. Youll write a program to assign seats on each flight of the airline's only plane (capacity: 10 seats). ars should first be setup for the night. You need to ask the user the specifications Le the number of first class and economy seats. As an example the user inputs 5 4 Meaning 5 first class and 4 economy class seats. Your program should display the following menu of alternatives and the available seats Please type 1 for "first class" (5) Please type 2 for "economy" (4) . . Please type 3 to display seating chart. Please type 4 to end If the person types 1, then your program should assign a seat in the first-class section (seats 1-5). If the person types 2, then your program should assign a seat in the economy section (seats 6-9). Your program should then print a boarding pass indicating the person's seat number

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions

Question

How would you describe the new culture?

Answered: 1 week ago