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

Username:   Password: 
 RegisterRegister   
 help with expressions!!
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
CyCLoBoT




PostPosted: Wed May 07, 2003 1:10 pm   Post subject: help with expressions!!

I would appreciate it if someone can help me with this problem. A user enters an expression like A + B / (C+D). I am suppose to ask the user for the values of A, B, C and D and I have to output the prefix notation of that expression and the answer of that sum.

When the user inputs A + B / (C+D) where a= 1, b=2,c=3 and d = 4

The output would be:
+ A / B +CD

and the sum : 1+2/(3+4) = 4/7

The expression can have a maximum of 4 variables.

Thanks
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: