a1 (1)

download a1 (1)

of 1

description

notes

Transcript of a1 (1)

  • Name: Vignesh ShenoyStudent Number: 100970143

    Ecor 1606 Assignment 1

    Question One:

    Create Variable: moneyoutput "Please enter the amount of money you have:" and an endl read a value into money

    if(money>=8.99) then Output "The best option is Orange Juice with diced Carrots and S

    pinach." and an endl

    elseif(money>=4.99)Output "The best option is Orange Juice." and an endl

    elseif(money>=3.50) then Output "The best option is Asparagus Milkshake." and an endl

    elseif(money>=2.50) then Output "The best option is Strawberry Milkshake." and an endl

    elseif(money>=1.75) then Output "The best option is Tea." and an endl

    elseif(money>=1.25) then Output "The best option is Water." and an endl

    elseif(money>=0.95) then Output "The best option is Coffee." and an endl

    elseif(money>=0.25) then Output "The best option is Pop." and an endl

    elseif(money