When coming up with an algorithm, you have to take apart things that are "automatic" in your head. How did you figure out the discount in your example? Pretend you have a friend who has no idea how...