Answered step by step
Verified Expert Solution
Question
1 Approved Answer
IN C + + you will develop a program that acts as a simple air traffic control simulator with one runway for landing and taking
IN C
you will develop a program that acts as a simple air traffic control simulator with one runway for landing and taking off. First, your program reads the simulation parameters: time length, landing time, takeoff time, landing arrival rate, and takeoff arrival rate. After running the simulation, your program will output the number of airplanes landed, the number of airplanes took off, average waiting time for landing, average time for taking off, and the number of airplanes were denied for landing and the number of airplane were denied for taking off. The above are basic requirements of this project You can make percent if you change this simulation from one runway to two runways: one for landing and other for taking off. Notice: you have to make some modifications on the runway class so that the class can be used for either landing or taking off.
Your program output may look like if two washing machine in your program: You may use the queue template or your own queue class. You should use class to address the Object Oriented Design and Programming.
Enter the simulation length:
Enter landing time for an airplane:
Enter taking off time for an airplane:
Enter landing arrival rate:
Enter taking off arrival rate:
Number of airplanes were landed:
Average waiting time for Landing was:
Number of airplanes were took off:
Average waiting time for taking off was:
Number of airplanes were denied for Landing:
Number of airplanes were denied for taking off:
Would you do it again yn: y
Show simulation results that look like the above...
Would you do it again yn: n
Thank for using this program! Bye.
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