Question: For this project, create a Java program that includes a class that holds the main method and the following methods. The module topic Hello World

For this project, create a Java program that includes a class that holds the main method and the following methods. The module topic Hello World Modularized demonstrates this approach. Here are the methods that are required:

#drawHorizontalLine: This method will display a horizontal line using asterisks

#drawVerticalLine: This method will display a vertical line using asterisks

#drawRectangle: This method will display a rectangle using asterisks

#drawSquare: This method will display a square using asterisks

#drawUpTriangle: This method will display a triangle pointed up using asterisks

#drawDownTriangle: This method will display a triangle pointed down using asterisks

The main method should display a label and call (activate) each method to display each shape. For example, the main method should display the label "Triangle", then call the drawTriangle method to display a triangle shape made of asterisks.

Important Note: The label is displayed in the main method only. If you put a label in the other methods, it will cause problems with the complex shapes that you need to make next.

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!