Please check the output_sample file to see the pattern output.
Simple Core java code which prints 5 different types of star patterns.
Problem 1: Write a function to draw a reverse isosceles triangle. Write a function draw1(int n) where “n” is an odd number between 3 and 99, both inclusive. For n = 7, following output is expected.
Problem 2: Write a function to draw a regular isosceles triangle. Write a function draw2(int n) where “n” is an odd number between 3 and 99, both inclusive. For n = 7, following output is expected.
Problem 3: Write a function to draw the following pattern. Write a function draw3(int n) where “n” is an odd number between 3 and 99, both inclusive. For n = 7, following output is expected.
Problem 4: Write a function to draw the following pattern. Write a function draw4(int n) where “n” is an odd number between 3 and 99, both inclusive. For n = 7, following output is expected.
Problem 5: Write a function to draw the following pattern. Write a function draw5(int n) where “n” is an odd number between 3 and 99, both inclusive. For n = 7, following output is expected.
Problem 6: Write a class which incorporates all above methods. Write a Java Class which incorporates above functions, and provides an option to select function and “n” as an input.