1. You need to design and create a drawing system that can draw different shapes. You need to define the shape classes and the main class. A shape should have its color, dimensions and any other attributes that are needed in order to draw it. For example, a circle needs its center point and the length of its radius. You can assume positions and dimensions are integers. The main class should have a method that initializes an internal data structure of shapes, and another method that gets this data structure and draws all the shapes by calling their draw method. You don't need to implement the internal of the draw methods. It is enough to have a comment in the right place saying // here we draw the shape. The shapes you need to support are: circle, rectangle and square

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

please implement on Java

1. You need to design and create a drawing system that can draw different shapes.
You need to define the shape classes and the main class.
A shape should have its color, dimensions and any other attributes that are needed in order to
draw it. For example, a circle needs its center point and the length of its radius. You can
assume positions and dimensions are integers.
The main class should have a method that initializes an internal data structure of shapes, and
another method that gets this data structure and draws all the shapes by calling their draw
method.
You don't need to implement the internal of the draw methods. It is enough to have a comment
in the right place saying // here we draw the shape.
The shapes you need to support are: circle, rectangle and square
Transcribed Image Text:1. You need to design and create a drawing system that can draw different shapes. You need to define the shape classes and the main class. A shape should have its color, dimensions and any other attributes that are needed in order to draw it. For example, a circle needs its center point and the length of its radius. You can assume positions and dimensions are integers. The main class should have a method that initializes an internal data structure of shapes, and another method that gets this data structure and draws all the shapes by calling their draw method. You don't need to implement the internal of the draw methods. It is enough to have a comment in the right place saying // here we draw the shape. The shapes you need to support are: circle, rectangle and square
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY