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:

  1. the "main" method which calls all other (following) methods
  2. standard I(input): lets users enter a positive integer N from keyboard/console
  3. standard O(ouput): display what was entered in (2) to the screen
  4. If: using what was entered in (2) to display on the screen two different messages depending on its value
  5. If-Else: using what was entered in (2) to display on the screen two different messages depending on its value
  6. Nested If-Else: using what was entered in (2) to display on the screen four different messages depending on its value
  7. Switch: using what was entered in (2) to display on the screen five different messages depending on its value
  8. while-loop: using what was entered in (2) to display on the screen N lines with different messages
  9. do-loop: using what was entered in (2) to display on the screen N lines with different messages
  10. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!