Write a java program that read two integer numbers width and height the of a rectangle, the program should draw a rectangle using stars (*) where width determine the number of stars in top an bottom sides and height determine the number of stars in the left and right sides.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter7: Characters, Strings, And The Stringbuilder
Section: Chapter Questions
Problem 9PE
icon
Related questions
Question
Write a java program that read two integer numbers width and height the of a
rectangle, the program should draw a rectangle using stars (*) where width
determine the number of stars in top an bottom sides and height determine the
number of stars in the left and right sides.
Here is the sample run
Enter the rectangle width: 10
Enter the rectangle height : 3
Assignment submission instructions:
1- You must submit the file with ".java" extension only.
2- You must submit a video that record your computer screen when you are writing the
program. The video must be uploaded to google drive then add video link with
assignment submission. The assignment will not be marked without screen recording
video.
Note: Any skills or java statements you do not study yet are used will be considered as
cheating.
Transcribed Image Text:Write a java program that read two integer numbers width and height the of a rectangle, the program should draw a rectangle using stars (*) where width determine the number of stars in top an bottom sides and height determine the number of stars in the left and right sides. Here is the sample run Enter the rectangle width: 10 Enter the rectangle height : 3 Assignment submission instructions: 1- You must submit the file with ".java" extension only. 2- You must submit a video that record your computer screen when you are writing the program. The video must be uploaded to google drive then add video link with assignment submission. The assignment will not be marked without screen recording video. Note: Any skills or java statements you do not study yet are used will be considered as cheating.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Adjacency Matrix
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:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,