?
2010-02-07 17:29:52 UTC
"When selecting choice 2 - calculate how many scoops of ice cream (assume 1 scoop = $1.34) the user can afford
First you need to know how much cash the user currently has (ask the user)
Then calculate the number scoops the user can currently afford
This would be easy enough - so try to solve this problem using a while-loop. The basic idea is to keep subtracting the cost of one scoop from the user's current cash amount until that amount is negative. And to keep track of how often the loop iterated."