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

  Create the object-oriented design for dvd collection

Create the object-oriented design for system which keeps tracks of your CD and DVD collection. Recognize each of the classes, associated data, and operations for classes.

  How often a player would win if they rolled the dice

Write a program that simulates how often a player would win if they rolled the dice 100 times.The program will output a message such as "The player rolled 14 sevens and 5 elevens for a total of 19 wins out of 100."

  Q1explain how the following tools may be used in

q1explain how the following tools may be used in productivity improvement initiatives?cause and effect diagramspareto

  Modeling a game using turing machine

Modeling a Game Using Turing Machine, Select a game that can be modeled by a simple Turing machine. It should take a series of inputs (such as a set of moves by a player) and use the tape and table to compute the outcome of whether the player won o..

  Program to track hourly employee arrival and departure times

A company hires you to write a program to track hourly employee arrival and departure times from work. In essence, you are tasked to make an online time clock

  Write a program to transfer copy 400 bytes

Write a program to transfer (copy) 400 bytes from a block starting at $1000 to another block starting at $1500 in Assembly language

  Prepare class to include three data member

Prepare Class called Employee that includes three pieces of information as data members - first name (type string), last name (type string) and monthly salary (type float).

  Numbers that can be calculated and have meaningful results

Numbers that can be calculated and have meaningful results

  Write the program to sustain person-s savings

Write down the program to sustain the person's Savings and Checking accounts. Program must keep track of and show balances in both accounts, and sustain a list of transactions.

  Create application to enter five-digit credit card number

Create an application that allows the user to enter a five-digit credit card number; assume that the fifth digit is the check digit.

  Write application to input numbers in one dimensional array

Use a one dimensional array to solve the following problem: Write an application that inputs five numbers, each between 10 and 100, inclusive.

  Implementing an erp successfully

Don't you think that without these types of governance groups they would be many conflicts between the different business units?

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