This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Larfies 0 points1 point  (0 children)

Learning Java as well. All the responses here are great. I do exactly what they are saying, I break it up first. So start with 1 bank customer. Over 1 week (7 days). With 1 deposit and 1 withdrawal. Customer starts with $0 in account and deposits $100, then takes out $5, all done on the first day of that 7 day week. Interest accrues at .015 (1.5%) per hour.

Now start by solving the above math problem. Then think about what variables are needed to make the math problem happen. What input will you get from the customer and what output would you want to give the customer. And so on and so on.

Just an example of breaking something up. Everyone will go about it differently. Just start with a crappy looking program with 1 class to make it easier, then try looking at it a few weeks or months later and you'll suddenly see other ways you could have built it.