Give the code based on the uml class diagram given

Assignment Help Programming Languages
Reference no: EM131320914

A software company MicroOffice has produced four generations of Word Processing Applications, called Word90, Word00, Word10, and Word15. 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 generation of the Word to be tested is 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 singleton pattern to ensure that the instance of each concrete factory is unique.

Questions

1) Give the UML diagram. You should have one single diagram that includes both abstract factory and singleton patterns.

2) Give the code (in any language) 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.

Reference no: EM131320914

Questions Cloud

Microsoft surface tablet computer : You are the Marketing Manager for the Microsoft Surface tablet computer. Your computer is sold to both end consumers and to corporate IT departments. Describe the factors impacting the buying decision in one segment. How do these factors affect ..
Mobile devices and social networking in selling process : In 2014, nearly half of the small businesses that reported an increase in social networks sales used social networking in multiple business development and sales capacities, including identifying requests for proposals
Solve the equation using n type semiconductor : Using only basic physics, no algebra, and no equations, show that at T=OK, EF=(EC-ED)/2 in an n-type semiconductor with NDD = 10 and NAA = 0.
Describe a mixed, or split-plot, factorial design : How many main effects can be tested in a 2 x 2 design? In a 3 x 3 design? In a 2 x 2 x 3 design?
Give the code based on the uml class diagram given : Give the code (in any language) 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.
Some property for sale and have received two offers : You have some property for sale and have received two offers. The first offer is for $150,000 today in cash. The second offer is the payment of $80,000 today and an additional $90,000 two years from today. If the applicable discount rate is 7 percent..
Conduct a survey of recently graduated family practitioners : The American Academy of Pediatrics wants to conduct a survey of recently graduated family practitioners to assess why they did not choose pediatrics for their specialization. Provide a definition of the population, suggest a sampling frame, and in..
Write a narrative paper for an organizational issues : Select an organizational issue, problem, or topic that you would like to research.Either choice requires you to include the following information: The business, organizational problem, or topic, The problem statement ,The research strategy that you w..
Why do researchers use expericorr designs : How many interactions can be tested in a 2 x 2 design? In a 3 x 3 design? In a 2 x 2 x 3 design?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd