Advertisement
Guest User

Untitled

a guest
Sep 17th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     PROCEDURE GetFuelNeededForTrajectory*(distance: LONGINT; plane: Airplane.Airplane): LONGINT;
  2.        
  3.         VAR
  4.             fuel: LONGINT;
  5.     BEGIN
  6.         IF plane IS Airliner.Airliner THEN
  7.             RETURN distance;
  8.         ELSIF plane IS Cargoplane.Cargoplane THEN
  9.             fuel := distance * 2;
  10.             RETURN fuel;
  11.         ELSE
  12.             Out.String("Fail.");
  13.             Out.Ln();
  14.         END;   
  15.     END GetFuelNeededForTrajectory;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement