You are on page 1of 1

Name: Vignesh Shenoy

Student Number: 100970143


Ecor 1606 Assignment 1
Question One:
Create Variable: money
output "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<0.25) then
Output "You do not have enough money to make a purchase." and an
endl
endif

You might also like