//********************************************************************
//
// Classname.java
//
//********************************************************************
//
// Program Description and Design Overview:
// Create a program that draws Stars. The program must draw 4 different
// kind of star patterns by printing sequences of asterisks and blanks
// (spaces) on the screen with nested loops. The Stars.java program on
// page 150 of your textbook is one of the four kinds of patterns your
// program must print (click on link to download). The other three patterns
// are shown here (including the original). Notice that the star patterns
// may have different number of rows. Patterns are named A, B, C, and D
// (left to right below).
//
// * ********** * *
// ** ********* ** ***
// *** ******** *** *****
// **** ******* **** *******
// ***** ****** ***** *********
// ****** ***** ****** ***********
// ******* **** ******* *************
// ******** *** ********
// ********* ** *********
// ********** *
// ***********
//
// Your program must prompt the user for the number of rows and the pattern type
// (A, B, C, and D). Then print a star with the selected pattern and size. It
// should then print 3 blank lines and prompt the user again. If the user enters
// zero or a negative number of rows, the program should end. Otherwise, loop and
// draw another star pattern
//
//
// Input Requirements:
// number of rows
// row pattern (A, B, C, or D)
//
// Output Requirements:
// prompt user for number of rows (if number is less than or equal to zero, stop program)
// prompt user for type of pattern
// pattern of stars (A, B, C, or D)
// same amount of rows as entered
// 3 blank lines
//
// Program Preconditions:
// number of rows must be an integer
//
//********************************************************************
import cs1.Keyboard;
public class Stars
{
//-----------------------------------------------------------------
// a program that draws Stars in the shape and amount of rows that user entered
//-----------------------------------------------------------------
public static void main (String[] args)
{
int max_rows;
System.out.print(
for (int row = 1; row <= MAX_ROWS; row++)
{
for (int star = 1; star <= row; star++)
System.out.print ("*");
System.out.println();
}
} //end main
} // end class Stars