Assignment 1 q3

download Assignment 1 q3

of 1

Transcript of Assignment 1 q3

  • 7/23/2019 Assignment 1 q3

    1/1

    // Vignesh Shenoy 100970143

    //constantscreate constant MagneticBearing = 14

    //variablescreate variable wind

    //Program//(1 > 0) to keep loop runningwhile (1 > 0 ) do

    Output "Enter Wind speed: "Input windset wind = wind + MagneticBearingOutput "Wind speed plus Magnetic Bearing is: " wind

    if (wind - 120 >= 90) thenset wind = round wind to an integerOutput"With wind speed " wind " your optimal runway is 3

    0."else

    set wind = round wind to an integerOutput"With wind speed " wind " your optimal runway is 1

    2."end if

    end while