S
swroopkulky
can nybody help me out to solve this problem,
Problem:::
Consider a domestic Airport which has two runways. A flight takes 10
minutes to land .Assume the flight is ready to land.Each runway can
be used by only one aircraft at any given time.The landing flight run
on the free runway.If more than one flight needs to land then
available runways then check the fuel reservers at both the flight
are more than 10000 gallons then the flight longest time waiting get
the preference & if the fuel reserve is less than 10000 gallons than
the flight having lesser fuel resreve get the preference .
Assume that 1000 gallons of fuel is consumed every 10 minutes the
aircraft waits for landing.
in case when two or more flights have same privilages then the flight
privilage will be decided by the flight no.
Assume the Data structure
FLIGHT ATTRIBUTE::
{
waiting_time(numeric in minutes);
flight_no(numeric);
reserve _fuel(numeric in gallons);
}
RUNWAY ATTRIBUTE::
{
runway_no(numeric);
isfree(boolean);
reserve_since(date\time);
}
* Create classes and Structures.
* Make the function
public void controlLanding(flight waitingflight[ ],runway
freerunway[ ] )
Problem:::
Consider a domestic Airport which has two runways. A flight takes 10
minutes to land .Assume the flight is ready to land.Each runway can
be used by only one aircraft at any given time.The landing flight run
on the free runway.If more than one flight needs to land then
available runways then check the fuel reservers at both the flight
are more than 10000 gallons then the flight longest time waiting get
the preference & if the fuel reserve is less than 10000 gallons than
the flight having lesser fuel resreve get the preference .
Assume that 1000 gallons of fuel is consumed every 10 minutes the
aircraft waits for landing.
in case when two or more flights have same privilages then the flight
privilage will be decided by the flight no.
Assume the Data structure
FLIGHT ATTRIBUTE::
{
waiting_time(numeric in minutes);
flight_no(numeric);
reserve _fuel(numeric in gallons);
}
RUNWAY ATTRIBUTE::
{
runway_no(numeric);
isfree(boolean);
reserve_since(date\time);
}
* Create classes and Structures.
* Make the function
public void controlLanding(flight waitingflight[ ],runway
freerunway[ ] )