Question: Can anyone help me a) write the class diagram for the description below b) write the code in java A software company MicroOffice has produced

Can anyone help me

a) write the class diagram for the description below

b) write the code in java

A software company MicroOffice has produced four generations of Word Processing Applications, called Word 90, Word00, Word I0, and Word I8. 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 cotTespond 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

Wordl8

Wordl0

Word00

Wordl8

Word90

Word00

1) Give the UML diagram. You should integrate singleton into abstract factory pattern.

2) Give the code (in any language e.g. JAVA) based on the UML class diagram given in l). 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 nm more than twice.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!