Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 school project that doesnt work!!!!!!
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Jimbo1991




PostPosted: 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?! Sad
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: