Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write program in c using linked List, Queue A boarding gate at the airport is using a ticket verification machine to reduce manpower. There are
write program in c using linked List, Queue A boarding gate at the airport is using a ticket verification machine to reduce manpower. There are ticket checking lanes ; before passengers enter a lane, a supervisor assigns them to a specific lane. Once assigned, passengers wait at the end of their designated lane. The operational principle of the verification machine is as follows: During each check, the machine verifies passengers at the front of each lane and selects the passenger with the longest scheduled flight time. In case of ties in flight times, priority is given based on higher ticket class there are ticket classes: with increasing priority accordingly If passengers have the same ticket class, priority is given to the passenger standing in the lane with the smallest lane number. Create a menu to carry out the ticket verification process for the automatic machine assume all tickets are valid with the following options: : Add a specified number of passengers from the keyboard. : Verify a specified number of passengers from the keyboard. : Verify all remaining passengers. Option : Exit The information of a passenger includes: Name of the passenger, ID number automatically generated in the order they are entered from the keyboard, with the first passenger assigned ID assigned lane, ticket class Validate the entered information. The information displayed on the screen for options and includes: Name of the passenger, ID ticket class, verification order in that round each selection from the menu is considered one round, and the first verified passenger will have order Each piece of information should be printed on a separate line
write program in c using linked List, Queue
A boarding gate at the airport is using a ticket verification machine to reduce manpower. There are ticket checking lanes ; before passengers enter a lane, a supervisor assigns them to a specific lane. Once assigned, passengers wait at the end of their designated lane. The operational principle of the verification machine is as follows: During each check, the machine verifies passengers at the front of each lane and selects the passenger with the longest scheduled flight time. In case of ties in flight times, priority is given based on higher ticket class there are ticket classes: with increasing priority accordingly If passengers have the same ticket class, priority is given to the passenger standing in the lane with the smallest lane number.
Create a menu to carry out the ticket verification process for the automatic machine assume all tickets are valid with the following options:
: Add a specified number of passengers from the keyboard.
: Verify a specified number of passengers from the keyboard.
: Verify all remaining passengers.
Option : Exit
The information of a passenger includes: Name of the passenger, ID number automatically generated in the order they are entered from the keyboard, with the first passenger assigned ID assigned lane, ticket class Validate the entered information. The information displayed on the screen for options and includes: Name of the passenger, ID ticket class, verification order in that round each selection from the menu is considered one round, and the first verified passenger will have order Each piece of information should be printed on a separate line
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started