Question Please could you give the comments too and be very detailed while writing the program. CS 250 Lab Exercise 07 Main topics: Loop Statements Nested Loops Exercise This lab is designed to give you more practice working with loop statements, and in particular, nested loops. Getting Started To start this exercise, you should 1. Open eclipse and start a new Java project named Lab07 2. Add a Class (named Lab07) to this project. Problem Description . For this exercise you will be creating a small Java class that will use a user validation loop to get a number in the range of 1 to 9, inclusive. Then the program will generate a triangular shaped figure on the screen, based on the user's input. • The triangular shaped figure for an input of 1 is: 11 • The triangular shaped figure for an input of 2 is: 11 2112 • The triangular shaped figure for an input of 3 is: 11 2112 321123 • The triangular shaped figure for an input of n is: 11 2112 321123 n... 11 ...n

BWAHVC The Asker · Computer Science

Please could you give the comments too and be very detailed while writing the program.

Transcribed Image Text: CS 250 Lab Exercise 07 Main topics: Loop Statements Nested Loops Exercise This lab is designed to give you more practice working with loop statements, and in particular, nested loops. Getting Started To start this exercise, you should 1. Open eclipse and start a new Java project named Lab07 2. Add a Class (named Lab07) to this project. Problem Description . For this exercise you will be creating a small Java class that will use a user validation loop to get a number in the range of 1 to 9, inclusive. Then the program will generate a triangular shaped figure on the screen, based on the user's input. • The triangular shaped figure for an input of 1 is: 11 • The triangular shaped figure for an input of 2 is: 11 2112 • The triangular shaped figure for an input of 3 is: 11 2112 321123 • The triangular shaped figure for an input of n is: 11 2112 321123 n... 11 ...n
More
Transcribed Image Text: CS 250 Lab Exercise 07 Main topics: Loop Statements Nested Loops Exercise This lab is designed to give you more practice working with loop statements, and in particular, nested loops. Getting Started To start this exercise, you should 1. Open eclipse and start a new Java project named Lab07 2. Add a Class (named Lab07) to this project. Problem Description . For this exercise you will be creating a small Java class that will use a user validation loop to get a number in the range of 1 to 9, inclusive. Then the program will generate a triangular shaped figure on the screen, based on the user's input. • The triangular shaped figure for an input of 1 is: 11 • The triangular shaped figure for an input of 2 is: 11 2112 • The triangular shaped figure for an input of 3 is: 11 2112 321123 • The triangular shaped figure for an input of n is: 11 2112 321123 n... 11 ...n