Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - takeoff
Search - takeoff - List
飞机订票系统,任务:通过此系统可以实现如下功能: 录入:可以录入某个航班情况(数据可以存储在一个数据文件中,数据结构、具体数据自定) 查询:可以查询某个航线的情况(如,输入航班号,查询起降时间,起飞抵达城市,航班票价,票价折扣,确定航班是否满仓); 可以输入起飞抵达城市,查询飞机航班情况; 订票:(订票情况可以存在一个数据文件中,结构自己设定) 可以订票,如果该航班已经无票,可以提供相关可选者航班; 退票:可退票,退票后修改西相关数据文件; 可户资料有姓名,证件号,订票数量及航班 修改航班信息:当航班信息改变可以修改航班数据文件 -plane reservation systems, tasks : the system can achieve the following functions : recording : Input can be given flight (data can be stored in a data file, the data structure, specific data set) Inquiries : can find a route (for example, the importation of flights, landing inquiries, arrival takeoff, flight fares, discount fares, flights to determine whether the Mancang); can import arrived in town to take off, inquiries flights; reservations : (booking situation may exist a data file, structure their own creation) could booking, If the flight had no vote, could provide flights were optional; Refund : Refund can, Refund West altered documents related data; households may have information name, documents, booking flights and the number of flight information changes : When the flight infor
Date : 2025-12-19 Size : 213kb User : han

【问题描述】假设机场有一条跑道,每架飞机需花费一定时间着陆,花费一定时间起飞,飞机的起降满足一定的概率。一般来讲,机场存在两个队列,一个等待着陆的飞机队列和一个等待起飞的飞机队列,同样等待时间下,等待着陆的飞机比准备起飞的飞机具有更高的优先级。试编写程序模拟这个机场的运行。 【基本要求】使用队列或优先队列实现;要求可以变换起飞和着陆频率来模拟一天中的飞行高峰期和空闲期;要求可以改变着陆和起飞时间以模拟不同的效果。 【实现提示】可以假设有一个每次前进一分钟的模拟时钟,对于每一分钟,产生两个随机数:如果第一个随机数小于landingRate/60,那么一个“着陆到达”将发生并被添加到着陆队列中;如果第二个随机数小于takeOffRate/60,那么一个“起飞到达”将发生并被添加到起飞队列中。接着,检查跑道是否空闲。若空闲,首先检查着陆队列是否为非空,如果是,允许第一架飞机着陆;否则,处理起飞队列。 -Description of the problem the assumption that the airport has one runway, each aircraft landing takes a certain period of time, take some time to take off, taking off and landing of aircraft to meet a certain probability. Generally speaking, the airport there are two queues, a queue waiting for the aircraft landing, and a waiting for takeoff the aircraft queue, the same wait time, waiting for the landing of the aircraft has a higher priority than the aircraft ready to take off. Try to write a program to simulate the operation of the airport. Requirements】 queue or priority queue implementation requirements can transform the frequency of take-off and landing day to simulate the flight peak periods and the idle period requirements can change the landing and take-off time in order to simulate different effects. [Tip] can be assumed to have an analog clock forward one minute at a time, every minute, resulting in two random numbers: If the first random number is less than landingRate/6
Date : 2025-12-19 Size : 181kb User : 李梅

数据结构课程的小实验,模拟一个飞机场的起飞降落调度,-Data structure course small experiment to simulate an airport takeoff and landing scheduling,
Date : 2025-12-19 Size : 224kb User : feiz

一个飞机起飞降落的程序代码,需要调试,比较简单,容易看到。-A takeoff landing program code, need to debug, simple, easy to see.
Date : 2025-12-19 Size : 3kb User : 申一平
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.