Question: Write java program the following methods. drawRectangle ( int height, int width ) drawRightTriangle ( int heigh, int base ) Use the methods to draw

Write java program the following methods.
drawRectangle(int height, int width)
drawRightTriangle(int heigh, int base)
Use the methods to draw the followins:
10x20 rectangle
4x5 rectnalge
20x10 right triangle
10x20 right triangle
Sample run
********************
********************
********************
********************
********************
********************
********************
********************
********************
********************
*****
*****
*****
*****
*
**
***
****
*****
******
*******
********
*********
**********
***********
************
*************
**************
***************
****************
*****************
******************
*******************
*
**
***
****
*****
******
*******
********
*********

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!