subject

A software company MicroOffice has produced four generations of Word Processing Applications, called Word90, Word00, Word10, and Word20. Suppose you are writing a program to test their GUIs. The GUI components we are interested in are Panel, Button, and Textbox. These GUI components look a little different in different generation. Each generation has it own program for testing these GUI components. To know which test to run, you will need to instantiate objects that correspond to each one of the GUI components.

We assume that generations of the Word to be tested are stored in a configuration file (text file). Because this situation fits the Abstract Factory pattern so well, you can use that pattern to organize the creation of objects that correspond to GUI components. You will also need to use the variation of singleton pattern to ensure that at most two instances of each generation in each test run. Please note finishing running all generations specified in the configuration file is considered as one test run. Here is an example of the configuration file content. You can create your own.

Word90
Word00
Word90
Word17
Word10
Word00
Word17
Word90
Word00

a. Give the UML diagram. You should integrate singleton into abstract factory pattern.
b. Give the code (in any language) based on the UML class diagram given in 'a'. As output, you need to display three different messages (e. g., "Panel Word90", Button Word90", and "Textbox Word90") for the generation specified in configuration file. You should give a warning message if the same generation are asked to run more than twice.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:30
Asuccessful format string attack attempted to steal user account information by reading from unauthorized memory. answer the followings with proper explanation a)this attack will lead to violation of which security policies?
Answers: 2
question
Computers and Technology, 22.06.2019 17:40
Consider the simple 3-station assembly line illustrated below, where the 2 machines at station 1 are parallel, i.e., the product only needs to go through one of the 2 machines before proceeding to station 2.what is the throughput time of this process?
Answers: 2
question
Computers and Technology, 22.06.2019 18:10
Assume that to_the_power_of is a function that expects two int parameters and returns the value of the first parameter raised to the power of the second parameter. write a statement that calls to_the_power_of to compute the value of cube_side raised to the power of 3 and that associates this value with cube_volume.
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Type the correct answer in the box. spell all words correctly. the managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an
Answers: 1
You know the right answer?
A software company MicroOffice has produced four generations of Word Processing Applications, called...
Questions
question
Social Studies, 07.04.2021 22:50
Questions on the website: 13722362