subject
Computers and Technology, 12.03.2021 16:40 reemoe

Suppose you have to design an application for drawing 2D geometric shapes. Some shapes are complex and may contain one or more shapes, basic or complex. For instance, a House shape includes 3 Rectangle (basic) shapes, a Chimney shape, and an Ellipse (basic) shape. The Chimney is a complex shape and includes 4 Line shapes. A complex shape behaves like a basic shape but also allows one to add/remove basic shapes to/from it. What design pattern must be applied to these shape concepts

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Draw the hierarchy chart and design the logic for a program that calculates service charges for hazel's housecleaning service. the program contains housekeeping, detail loop, and end-of-job modules. the main program declares any needed global variables and constants and calls the other modules. the housekeeping module displays a prompt for and accepts a customer's last name. while the user does not enter for the name, the detail loop accepts the number of bathrooms and the number of other rooms to be cleaned. the service charge is computed as $40 plus $15 for each bathroom and $10 for each of the other rooms. the detail loop also displays the service charge and then prompts the user for the next customer's name. the end-of-job module, which executes after the user enters the sentinel value for the name, displays a message that indicates the program is complete.
Answers: 2
question
Computers and Technology, 22.06.2019 11:10
Which are not examples of chronic or persistent stress? moving
Answers: 1
question
Computers and Technology, 22.06.2019 19:10
What a backup plan that you have created in a event you encounter a situation
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
Experimental data that is expressed using numbers is said to be
Answers: 1
You know the right answer?
Suppose you have to design an application for drawing 2D geometric shapes. Some shapes are complex a...
Questions
question
Mathematics, 18.04.2020 00:22
question
English, 18.04.2020 00:22
question
Mathematics, 18.04.2020 00:22
question
Mathematics, 18.04.2020 00:22
Questions on the website: 13722363