How can I add a user input loop to this so that it asks the user if they want to calculate another loan and if they choose no the program ends, but if they choose yes, the program loops back and asks for loan amount?

I don't think I believe you. In any case, even if it's not homework, it's not game related so this still isn't an appropriate site.

fireside
—
2010-03-08T00:25:43Z —
#5

Well, it's programming anyway. We'll pretend it's a game. Adding a user input loop for end or keep going is pretty easy. You just put a while loop around everything you want repeated and add another variable. Call it "done" or something. bool done = false; while(!done) { Do all this stuff. ask user if done if (user says yes) done = true }

alphadog
—
2010-03-08T16:05:19Z —
#6

C'mon, you can't google "java loops" so that you can finish your homework quickly?

Also, if it isn't homework, I suggest you read a good Java intro book so that simple little things like this don't trip you up. Would you operate a complex piece of machinery without opening a user's manual?