You are on page 1of 1

// Vignesh Shenoy 100970143

//constants
create constant MagneticBearing = 14
//variables
create variable wind
//Program
//(1 > 0) to keep loop running
while (1 > 0 ) do
Output "Enter Wind speed: "
Input wind
set wind = wind + MagneticBearing
Output "Wind speed plus Magnetic Bearing
if (wind - 120 >= 90) then
set wind = round wind to
Output"With wind speed "
0."
else
set wind = round wind to
Output"With wind speed "
2."
end if
end while

is: " wind


an integer
wind " your optimal runway is 3
an integer
wind " your optimal runway is 1

You might also like