Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A software company MicroOffice has produced four generations of Word Processing Applications, called Word90, Word00, Word10, and Word18. Suppose you are writing a program to

A software company MicroOffice has produced four generations of Word Processing Applications, called Word90, Word00, Word10, and Word18. 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

Word18

Word10

Word00

Word18

Word90

Word00

Tasks

1) Give the UML diagram. You should integrate singleton into abstract factory pattern. (Designing UML on paper and then scanned is acceptable but the design should be visible/clear, or you risk to loose points)

2) Give the code based on the UML class diagram given in 1). 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.

3) Place your source codes in a folder called Q2CODE and your UML class diagram in a folder called Q2UML

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

buyerseller relationship.

Answered: 1 week ago