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

Username:   Password: 
 RegisterRegister   
 How to calculate $/per kg?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
lucklesslily




PostPosted: Mon Nov 02, 2015 9:52 am   Post subject: How to calculate $/per kg?

I'm trying to create a program that will be able to tell you the price of shipping based on two factors
a) whether it's domestic or international shipping and b) the weight of what's being shipped. But I can't figure out what kind of statement I need, or how to write it. I thought an IF statement would work, but I just can't seem to figure it out. Embarassed
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Mon Nov 02, 2015 6:19 pm   Post subject: RE:How to calculate $/per kg?

This is a question that translates almost word for word from English to Turing. If it's domestic, multiply the weight by the domestic rate. If it's international, multiply the weight by the international weight.
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  [ 2 Posts ]
Jump to:   


Style:  
Search: