Today's programming challenge! I'd seen this before but when I saw this again in the Algebra Lab I worked on it again. You've got $15. Chocolate bars cost $1. You can turn in 3 wrappers and get another chocolate bar. How many chocolate bars can you get? Write a computer program that returns the number of dribbles you can get if you have b drabbles, dribbles cost 1 drabble and you can get another dribble when you turn in w dribble wrappers. |