The following problems are similar to programming problems that will be asked on our upcoming midterm exam. You don't need to solve all of them, but try a few to see how you fare.
To solve each problem, you will need to use various concepts and syntax taught throughout the course so far, such as System.out.println, expressions, variables, parameters, return, if/else, for/while loops, Scanner, and Random. Part of the challenge is in figuring out which tools to use and how to use them together to solve the problem at hand.