Question: b. (5 marks) Write the main method to do the following: .Ask the user to enter how many rectangles he/she wants to draw For each
b. (5 marks) Write the main method to do the following: .Ask the user to enter how many rectangles he/she wants to draw For each rectangle do the following: Prompt the user to enter the length and the width of the rectangle. Read the length and the width - - Prompt the user to enter the character you want to fill the rectangle with. - Read the character. Call method draw to draw the rectangle. ava program package finalq3: import java.util. public class Final03 public static void main (String[ args)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
