Create a program that draws a rectangle in text mode given the dimensions provided by the user. Attached is  a sample of the execution of the program.     Hint: Use a loop and the repetition operator to create the rectangle.

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter16: Graphics
Section: Chapter Questions
Problem 9RQ
icon
Related questions
Question

Text Rectangle. Create a program that draws a rectangle in text mode given the dimensions provided by the user. Attached is  a sample of the execution of the program.

 

 

Hint: Use a loop and the repetition operator to create the rectangle.

 

Drawing a text rectangle
Enter width of rectangle in number of characters: 10
Enter height of rectangle in number of characters: 4
TTT TTT
%23
Transcribed Image Text:Drawing a text rectangle Enter width of rectangle in number of characters: 10 Enter height of rectangle in number of characters: 4 TTT TTT %23
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Types of Loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage