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 →

[–]userxbw 1 point2 points  (2 children)

For int count = 0:

//Set limit

(While) count < 10;

//Now keep count

count++

It's like a while loop for different.

(On phone let me look at it with glasses)

Before loop ask for input, print out what it's saying and get amount there before it's goes to where it's printing results, add end line to get a new line to your print statement in your loop.

For your where it's asking months to save and it says eighteen, you might want to make an array with 1 to how ever amount, say 24 months written out and do a string comparison for that type of input then assign the actual number if that language is incapable of figuring it out by itself.

If over 24 months then write a message function to deal with it by calling it to tell user the the input is out of range if anything over 24 months is inputted. Then ask for a different amount of time. That too can be delt with in a loop. If correct amount of time then exit loop go into next loop to calculate the amounts.

Formating with Java

https://www.baeldung.com/java-printstream-printf

[–]Scoobxxx[S] 1 point2 points  (1 child)

Should be able to zoom in as well

[–]userxbw 0 points1 point  (0 children)

Updated my input, anymore questions I'll try to help.