Discuss what kind of tactics you should use to achieve that

Assignment Help JAVA Programming
Reference no: EM131453125

Assignment

Question 1:

In a client-server system for a hypothetical banking application, the clients are ATM machines, and the server is the bank server. Suppose that the client has two operations: withdraw and deposit. Use the broker architectural pattern to document an initial architecture design for this system:

1- Draw a class diagram for this system. Use a client-side proxy to encrypt the data using an encrypt operation, and use a server side proxy to decrypt the data.

2- Draw a sequence diagram for this system.

3- Suppose that we want greater availability of the server, discuss what kind of tactics you should use to achieve that.

Question 2:

You are given a class that processes the purchases for an online store. The class receives calls to retrieve the prices for items from a database, records the sold items, updates the database, and refreshes the webpage. What architectural pattern is suitable for this? Illustrate your answer by drawing a model for the solution, showing the method calls/events. Comment on how applying the pattern will impact the modifiability of the system.

Question 3:

A "Personal Address Book" application program allows the user to add, delete, search, save and load her contact information. The program separates user (command-line) interface and internal processing subsystem. The internal processing system consists of the following classes: ContactManager (responsible for add and delete operations), ContactFinder (responsible for search operation), and DataManager (responsible for save and load operations).

1- What design pattern can be used to implement the user interface? Explain your answer using class diagram for the entire system.

2- Draw an UML sequence diagram to show the behavioural view of the personal address book program that demonstrates what happens when a user enter a new contact information.

Question 4:

In a system comprising of 3 components: A, B, C. Calling A requires calling B, and calling B requires calling A. Component C is responsible for tasks T 1, T 2, and T 3.

Comment on the modifiability of this system. What are the problems that you see in this system, and how you solve them?

Suppose that T 1 is performed by both component A and C? What does it say about A and C? How you solve this problem?

Question 5:

Write a performance scenario for the Trent Course Registration System. Suppose that this system uses a client-server architecture. Think about whether your major concern is latency, throughput, or some other response measure. What tactics you will use to mitigate these issues. Elaborate your answer using examples.

Question 6:

1451_Layered_System.jpg

Show how you will do the integration testing on the above layered system using bing bang, top- down, bottom up, sandwich and modified sandwich approaches?

Question 7:

Write JUnit test cases for setLoanAmount (to test the Exception) and getMonthlyPayment.

public class Loan {
private double annualInterestRate; private int numberOfYears;
private double loanAmount; private java.util.Date loanDate;

/** Default constructor */ public Loan() {
this(2.5, 1, 1000);
}

/** Construct a loan with specified annual interest rate, number of years, and loan amount
*/
public Loan(double annualInterestRate, int numberOfYears, double loanAmount) {
this.annualInterestRate = annualInterestRate; this.numberOfYears = numberOfYears; this.loanAmount = loanAmount;
loanDate = new java.util.Date();
}

/** Return annualInterestRate */
public double getAnnualInterestRate() { return annualInterestRate;
}

/** Set a new annualInterestRate */
public void setAnnualInterestRate(double annualInterestRate) { this.annualInterestRate = annualInterestRate;
}

/** Return numberOfYears */ public int getNumberOfYears() {
return numberOfYears;
}

/** Set a new numberOfYears */
public void setNumberOfYears(int numberOfYears) { this.numberOfYears = numberOfYears;
}

/** Return loanAmount */
public double getLoanAmount() { return loanAmount;
}

/** Set a newloanAmount */
public void setLoanAmount(double loanAmount) throws Exception{ if (loanAmount < 0)
throw new Exception("Money cannot be negative"); this.loanAmount = loanAmount;
}

/** Find monthly payment */
public double getMonthlyPayment() {
double monthlyInterestRate = annualInterestRate / 1200;
double monthlyPayment = loanAmount * monthlyInterestRate / (1 - (1 / Math.pow(1 + monthlyInterestRate, numberOfYears * 12)));
return monthlyPayment;
}

/** Find total payment */
public double getTotalPayment() {
double totalPayment = getMonthlyPayment() * numberOfYears * 12; return totalPayment;
}

/** Return loan date */
public java.util.Date getLoanDate() { return loanDate;
}
}

Submit your: 1-Source code.
2-Screenshots of the test runs.

For all diagrams, use an appropriate modelling tool such as Microsoft Visio. Submit your assignment on blackboard using a pdf file.

Reference no: EM131453125

Questions Cloud

Persuasive email to a manager or coworker : Write a 700- to 1,050-word persuasive email that includes a well-crafted subject line, salutation, and signature block.
Describe and compare various user interfaces within an os : Describe the functional components of an operating system, including kernels, modules, application program interfaces, and other services?
Determine the belt speed and spacing between parts : A moving belt line is used for a product whose work content time = 33.0 min. Production rate = 45 units/hr. The length of each station = 1.75 m.
Create a one- to two-page resume for this job : Create a one- to two-page resume for this job. Your resume should be formatted consistently by using the same type face, font, and headings. Use clear writing.
Discuss what kind of tactics you should use to achieve that : Draw a sequence diagram for this system. Suppose that we want greater availability of the server, discuss what kind of tactics you should use to achieve that.
What is the elapsed time a work unit spends on the line : Work content time for a product assembled on a manual production line is 45.0 min. Production rate of the line must he 40 units/hr.
Implementing an erp system : explain why ERP systems include CRM and SCM components, and the advantages the company can gain by implementing all of the components for connected corporation
Brief description of the organization from the case : HIM 220:Describe the scope of functionality these applications will be depended on for and justify why these applications are essential to the EHR.
Determine the relative importance of compensable factors : Strategic compensation is a component of the human resource system. Examine how organizations determine the relative importance of compensable factors

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

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

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