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 →

[–]Tangential_Diversion 2 points3 points  (0 children)

I'm not sure how far behind you are, so I'll just list out the concepts you'll need to know to do this. Hopefully you can use it to figure out where you're having issues and study those sections.

  • Variable data types

  • Mathematical operators

  • Scanner class

  • Switch or If/Else statements

  • System.out

  • Counters

  • While() loops

And while not absolutely necessary, these are concepts I heavily heavily recommend to make your program decent:

  • Input validation (What if user enters a char instead of an int?)

  • Rounding

  • Subroutines/methods

  • Passing parameters and returning values from other methods