Question: Create a Java program call CS2_review_01 in BlueJ (see template lab04a) which has separate methods for doing the following: the main method which calls all
Create a Java program call CS2_review_01 in BlueJ (see template lab04a) which has separate methods for doing the following:
- the "main" method which calls all other (following) methods
- standard I(input): lets users enter a positive integer N from keyboard/console
- standard O(ouput): display what was entered in (2) to the screen
- If: using what was entered in (2) to display on the screen two different messages depending on its value
- If-Else: using what was entered in (2) to display on the screen two different messages depending on its value
- Nested If-Else: using what was entered in (2) to display on the screen four different messages depending on its value
- Switch: using what was entered in (2) to display on the screen five different messages depending on its value
- while-loop: using what was entered in (2) to display on the screen N lines with different messages
- do-loop: using what was entered in (2) to display on the screen N lines with different messages
- for-loop: using what was entered in (2) to display on the screen N lines with different messages
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
