Posted: Wed Nov 07, 2012 12:10 pm Post subject: Selection in turing?
What is it you are trying to achieve?
I need to make a computer program which will print out an invoice for a specific item.
I have to add 13% HST to each canadian order and will not need any taxes for customers in the US.
I also need to add postage and handling to cover the cost of shipping the product. for orders of 100$ or less, the postage fee - 15$.
over 100$ and less than 500 - 30$
orders of 500 or more- 50$
What is the problem you are having?
I managed to do the postage and handling part, but i dont know how to add 13% hst to the canadian orders only.
Describe what you have tried to solve this problem
Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Please specify what version of Turing you are using
4.11
Sponsor Sponsor
Insectoid
Posted: Wed Nov 07, 2012 12:16 pm Post subject: RE:Selection in turing?
How did you do the postage and handling part? The HST part is literally exactly the same thing.
jadelinanne
Posted: Wed Nov 07, 2012 12:23 pm Post subject: Re: Selection in turing?
if totalCost <= 100 then
postageHandle := post1
elsif totalCost >= 100 and totalCost <= 500 then
postageHandle := post2
else
postageHandle := post3
end if
where do i put in the hst part?
Tony
Posted: Wed Nov 07, 2012 1:04 pm Post subject: Re: Selection in turing?
jadelinanne @ Wed Nov 07, 2012 12:23 pm wrote:
where do i put in the hst part?
- what options do you have? (before, in the middle of, right after cost calculation)
- does calculating tax depend on anything? (do you need to know cost before calculating tax?)
- does this dependency help you figure out which of the options from first question works the best? (yes)