I need C programming NOte - C programming Share screenshot. ***********C Program*********C Program********* Dont Not Cop

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

I need C programming NOte - C programming Share screenshot. ***********C Program*********C Program********* Dont Not Cop

Post by answerhappygod »

I need C programming
NOte - C programming
Share screenshot.
I Need C Programming Note C Programming Share Screenshot C Program C Program Dont Not Cop 1
I Need C Programming Note C Programming Share Screenshot C Program C Program Dont Not Cop 1 (187.16 KiB) Viewed 35 times
***********C Program*********C
Program*********
Dont Not Copy Paste
Question 3 (10 Marks) – A menu driven airport system. In this problem you are required to create an airport system that schedules aeroplanes. Create a structure that contains three elements, first element should store plane id, second element should store route destination (eg: London, Melbourne etc) and third element should store schedule (time). Declare an array of this structure with a size 15. Function 1: From main call a function (you must give an appropriate name for this function) passing the array (In this problem array means array of the structure) and size of the array as parameters to fill the details of planes in the array. The plane id should be filled with a random integer between 100 and 1000 and route destination of that plane should be filled with a string value. This function should be called first in the menu driven program and must call only once. Function 2: From main call a function (you must give an appropriate name for this function) passing the array and size of the array as parameters to fill the departure time of the planes (fill the time field of the structure in the array). You can use the sample code provided to fill the time details. You need to call this function only once and must call only after invoking the function 1. Function 3: From main call a function (you must give an appropriate name for this function) passing the array and size of the array as parameters to print the details of array (details of all planes – plane id, route destination and time) on the screen. You can call this function repeatedly. Function 4: From main call a function (you can give an appropriate name for this function) passing the array and size of the array as parameters to schedule the planes based on the time field of the
planes. The earliest time value) plane to be placed at the bottom of the array. You need to call this function only once. Then extend your structure to include a self-referential structure element to create queue and stack using this structure. This self-referential structure should be used for the next two functions. These functions can be called any number of times and in any order but can be called only after scheduling the planes (function 4) based on the time field of the planes. Function 5: Call a function (you must give an appropriate name for this function) that allows one plane to take off from the airport based on the schedule. Plane with the earliest schedule should leave the depot first. Function 6: Call a function (you must give an appropriate name for this function) that allows one plane to take off from the airport with the last scheduled plane from the array to leave the airport first (in an emergency). Write a menu driven program to implement the above tasks.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply