Computer Science Canada school project that doesnt work!!!!!! |
Author: | Jimbo1991 [ Thu Feb 28, 2008 11:15 am ] |
Post subject: | school project that doesnt work!!!!!! |
i have an assingment at school in which i have to use if statments but my code wont work. heres my code: var meal1 : real var meal2 : real var meal3 : real var meal4 : real var subtotal : real var total : real put "chicken burger 5.55" put "regular burger: 4.95" put "pasta: 4.75" put "drinks: 1.00" if meal1 = 1 then subtotal := 5.55 elsif = 2 then subtotal := 4.95 elsif answer = 3 then subtotal := 4.75 elsif answer = 4 then subtotal := 1.00 put "your subtotal is 5.55" heres the assinment : Question #2: Create a restaurant menu. There should be at least 4 different choices displayed along with their prices. Then ask the user what choice they would like, adding the price to their total. Finally display they?re total to the screen with the PST and GST. can anybody help me?! |