Develop a class diagram for the system

Assignment Help Computer Engineering
Reference no: EM131390067

PROBLEM 1:

A system keeps track of prices of machine parts in a warehouse. Prices of machine parts in the warehouse may change. Interested users may register with the system to watch price changes of a specific machine part in the warehouse. Each machine part is uniquely identified by its name and ID number. At any time different types of users may register or un-register to watch the price of a specific machine part in the warehouse. Each time when the price of a machine part changes, the system notifies all users registered to watch the price change of this machine part.

a. Develop a class diagram for the system using the Observer design pattern. For each class list all operations with parameters and briefly specify them using pseudo-code. In addition, for each class provide its attributes. Make the necessary assumptions for your design. Notice that the components in your design should be de-coupled as much as possible. In  addition, components should have high cohesion.

b. Provide two sequence diagrams showing:

  • How the user registers to observe a price change of a selected machine part.
  • How the system notifies users about price change of a specific machine part.

PROBLEM 2:

The ACCOUNT component supports the following operations:

OPEN (int p, int y, int a)   // open an account where  p is a pin,  y is an user's identification #, and a is a balance

PIN (int x)    // provides pin #

DEPOSIT (int d);  // deposit amount d  

WITHDRAW (int w);  // withdraw amount w 

BALANCE ();   // display the current balance

LOGIN(int y)   // login where y is a client's identification #

LOGOUT()    // logout from the account

suspend()    // suspends an account

activate()     // activates a suspended account 

close()      // an account is closed

The  ACCOUNT component is a state-based component and supports three types of transactions: withdrawal, deposit, and balance inquiry.  Before any transaction can be performed, operation OPEN(p, y, a) must be issued, where y is a client's identification #, p is a pin used to get permission to perform transactions and a is an initial balance in the account. It is assumed that OPEN() operation is issued only once for a given account. Before any transaction can be performed, operation LOGIN(y) must be issued (where y is a client's identification #) followed by PIN(x) operation. The PIN(x) operation must contain the valid pin # that must be the same as the pin # provided in OPEN(p,  y,  a) operation. There is a limit on the number of attempts with an invalid pin. The account can be overdrawn. If the account is overdrawn  then the withdrawal  transaction cannot be performed. The account may become suspended by suspend() operation. If the account is suspended, withdrawal, deposit, and logout transactions cannot be performed. A suspended account can be activated by activate() operation. In addition, a suspended account can be closed by  close() operation. The detailed behavior of the ACCOUNT component is specified using EFSM. The EFSM of Figure 1 shows the detail behavior of the ACCOUNT component.

Design the system using the State design pattern. Provide two solutions:

  • de-centralized version of the State pattern
  • centralized version of the State pattern

Notice that the components in your design should be de-coupled as much as possible. In addition, components should have high cohesion.

For each solution:

a. Provide a class diagram for the system.  For each class list all operations with parameters and specify them using pseudo-code. In addition, for each class provide its attributes and data structures. Make the necessary assumptions for your design.

b. Provide a sequence diagram for the following operation sequence: OPEN(123,111,1000), LOGIN(111), PIN(123), DEPOSIT(200), BALANCE(), suspend(), close()

Attachment:- Assignment Files.rar

Reference no: EM131390067

Questions Cloud

What is this contact arrangement called : In a forward-reverse control circuit, a normally closed F contact is connected in series with the R starter coil, and a normally closed R contact is connected in series with the F starter coil. What is the purpose of doing this and what is this co..
Determine the probability that someone is under 30 : Determine the probability that someone is under 30,- the probability that someone has a high income given that he or she is under 30,
What is being done to recruit a more diverse workforce : What is being done (if anything) to recruit a more diverse workforce? What type of external recruitment method is being used on these web sites? What is the reason for your classification?
Britney positions over a specific time interval : Britney Spears is on stage in Vegas, being acted upon by gravity, maybe even a backup dancer. Here are Britney's positions over a specific time interval:
Develop a class diagram for the system : CS 586; Spring 2017 ASSIGNMENT. Develop a class diagram for the system using the Observer design pattern. For each class list all operations with parameters and briefly specify them using pseudo-code
Describe three key metrics needed to guide a new pmo : Describe three key metrics needed to guide a new PMO. Identify the information technology needed for the implementation of PMO standards and metrics.
What is the magnitude of the total electrostatic force : What is the magnitude of the total electrostatic force on a third particle with charge 9 uC placed on the x-axis at 2 cm? The Coulomb constant is 8:9875 109 Nm2=C2. Answer in units of N.
Describe role compensation plays in organizational strategy : You have recently been promoted from an HR Assistant position to the Compensation Manager position for your firm. Describe the role compensation plays in organizational strategy.
Which of the following could cause this condition : Assume that the start button is pressed and the oil pump starts operating. After a delay of 5 seconds, the COMP pilot light turns on, but the compressor motor does not start. Which of the following could cause this condition?

Reviews

len1390067

2/10/2017 5:50:35 AM

This is the Software Systems Architectures homework. We need to write the pseudo-code and draw some diagrams such as class diagram and several design patterns. I will provide the HW deatil pdf that you can see what we need to do for the HW. Also, I will provide the last year HW pdf and solutions from my other classmate that you can reference to know how to write this time HW. I will upload two rar files. One is last year HW, and the other is this year HW, the one we need to do this year which detail and request is on the pdf. The problem you need to do is that write this year hw only for #problem 2. You should use state pattern to provide two solutions: de-centralized version of the State pattern and centralized version of the State pattern. For each solution you should provide class diagrams and pseudo-code. And provide the sequence diagrams for the hw requirements. You can see this year homework 1.pdf for more detail.

Write a Review

Computer Engineering Questions & Answers

  Design a system for the organization of the choice

Design a system for the organization of your choice. This could be for the current or former employer or some fictitious organization. The system you plan might be data storage, telecommunications, e-commerce, accounting information, manufacturing ..

  Create a new course registration system

Suppose that your university were interested in creating a new course registration system that could support Web-based registration.

  Find the corner points that describe the optimum solution

For the Reddy Mikks model, find the corner points that describe the optimum solution for each of the subsequent objective functions:

  Make the price of an item for each of the five days

The Last Stop Boutique is having a five-day sale. Each day, starting on Monday, price will drop 10% of the previous day's price. For example, if the original price of a product is $20.00, the sale price on Monday would be $18.00 (10% less than the..

  Write a report about memory management ram technologies

Write a report about Memory Management: RAM technologies. It has been widely acknowledged that many students will work in jobs that are not known yet.

  Establish a new shared secret

Suppose that two strangers A and B want to communicate with each other using secret- key cryptography, but do not share a key. Suppose both of them trust a third party C whose public key is well known. How can the two strangers establish a new shar..

  Design an eight-input priority encoder

Design an eight-input priority encoder with inputs A7:0 and outputs Y2:0 and NONE should be 0. Give a simplified Boolean equation for each output.

  Explain what is meant by a functional requirement

Explain what is meant by a functional requirement. What are two types of functional requirements? Give two examples of each.

  Name an instruction used to call a subroutine

Name an instruction used to call a subroutine. Name the register(s) that change(s) in value after the instruction is executed.

  Explain two types of health care information systems

Analyze the impact of the effect on organizational decision-making.Make recommendations for implementation and improvements.

  Write a program to sort a number of strings

Write a program to sort a number of strings using bubblesort. Input is a number of strings and the output is the sortedlist based on the length of strings

  Create program that will read a list of student last names

create program that will read a list of student last names

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