The following task involves several steps, but they are out of order. Arrange them so that a person who follows the steps exactly can perform the task:
Chocolate truffles cost $5 per pound for the first 5 pounds, and only $3 per pound for any amount beyond the first 5 pounds. How would you compute the cost of any given amount of truffles?
a) Multiply by 5.
b) Multiply by 3.
c) If the amount is over 5 pounds, skip the next two statements.
d) Write the result, which is the price in dollars.
e) Subtract 5 from the weight in pounds.
f) Skip the next three statements.
g) Add 25.
Niciun comentariu:
Trimiteți un comentariu