Question: In Eclipse,write a program that produces the following pattern using nested for loops. Use a class constant to make it possible to change the number
In Eclipse,write a program that produces the following pattern using nested for loops. Use a class constant to make it possible to change the number of people in the figure (for example, in the version below, the constant would be set to 5), and then set that constant to 7 and print the pattern.
o *******
/|\ * *
/ \ * *
o ****** *
/|\ * *
/ \ * *
o ****** *
/|\ * *
/ \ * *
o ****** *
/|\ * *
/ \ * *
o ****** *
/|\ * *
/ \ * *
********************************
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
