You are on page 1of 6

DUY TN UNIVERSITY

PRACTICE DOCUMENT
Subject:

Lecturer: NGUYN TH MINH THI

Practice document

Software reuse and integration

Danang, 2012

Practice document

Software reuse and integration

EXERCISE 1
Objectives: Building distributed application using COM+, Web Service, WCF Program Requirement 1: Sam, a manager at Imperial Bank, is constantly required to calculate the interest amounts for the loans acquired by their customers. The bank has the following schemes to grant loan to the customers: - A five-year scheme with 5% rate of interest. - A three-year scheme with 10% rate of interest. - A two-year scheme with 15% rate of interest. You, as a software developer, need to create a serviced component that calculates the interest and the total amount to be paid by the customer at the end of the loan duration. In addition, you need to create a client application that uses the serviced component. The client application should accept the customer name, the loan amount, and the number of years and display the total amount to be paid by the customer at the end of the period. Program Requirement 2: The employees at Imperial Bank use a client application to view the account details of their customers. The client application uses a component to access the details from the banks database server. Each time the client application calls a method of the component, an instance of the component is created. This leads to the increased memory consumption. In addition, it affects the performance because each time a method of the component is called, an instance needs to be created. As a software developer, you need to ensure that multiple employees can access the component without performance deterioration. In addition, you need to ensure optimum utilization of memory. Program Requirement 3: PreachGreat University offers various vocational courses. The details of the students enrolled for these courses are stored in a centralized database. The university staff from various departments needs to access the student details for various purposes, such as for preparing academic results and to send circulars. To access the student details, the staff uses a client application. The client application uses a component to access the details. As a developer, you need to create the component and the client application that accesses the component. In addition, you need to ensure that the component uses optimum memory on the server.

Practice document

Software reuse and integration

EXERCISE 2
Objectives: Building distributed application using Web Service, WCF Program Requirement 1: Luxury Drive is a rapidly growing car manufacturing company. The management at the company plans to deploy an application that provides details about the various models of the cars manufactured by the company. This application will be accessed by all the stakeholders such as the companys call center and the distributors by using client applications. The companys call center has already got a client application. The management wants the same application to be modified to use the newly-created application. Similarly, the distributors might be using some client applications to access similar type of applications and might want to use the same client applications for accessing the newly-created application. These client applications may be developed by using different programming languages and platforms. Therefore, the new application should be created in such a way that the logics exposed by the application can be accessed from any client application, irrespective of the platform the client applications are using. As a distributed application developer, you need to create the application in such a way that it can be accessed by any client application across any platform. In addition, you need to modify the call centers client application so that it can access the newly-created application. Program Requirement 2: SaveMyMoney is a multinational bank having branches across the globe. The bank has a centralized database containing the details of all the customers. The database is located at the base branch in London. The management of the bank wants to have an application that should provide the details of the customers to all its branches. This application should be such that it can also be accessed by legacy client software used by the various branches, irrespective of the language and platforms the legacy software are using. In addition, the management wants that the existing client application, used at its call center, can also access the newly-created application. For this, the client application needs to be modified. As a distributed application developer, you need to create the application in such a way that it can be accessed by any client application across any platform. You also need to modify the call centers client application so that it can access the newly-created application. Program Requirement 3: Consider a scenario where the management of a large retail store, ABC Stores, needs to communicate its business transactions and decisions to all its stakeholders. The stakeholders may be internal and external to the retail store. The organization has more than 100 retail outlets located across the globe and is growing at a fast rate. The querying, reporting, and analyzing tasks are to be performed for the top

Practice document

Software reuse and integration

management at the head office in Atlanta. Therefore, this involves consolidation of data in every region. The business analyst of the organization has to consider the huge volume of data involved, the time taken by the queries to execute, and needs to publish the report to the management. In addition, when handling the collected and analyzed data, the business analyst needs to maintain its security. In context of the preceding scenario, answer the following questions: Which type of software architecture is best suited to this condition? Give reasons for the same. Which distributed application technology is best suited to this condition? Give reasons for the same. Which type of client application (Windows or Web) is best suited to this condition? Give reasons for the same.

EXERCISE 3
Objectives: Building distributed application using RMI Program Requirement 1: Create graphics user interface application using RMI technology to perform following requests: 1. Add an element at the end of array of integers 2. Computes the average of even array elements 3. Inverts the elements of the array 4. Remove the integers that divided by 3 and 7 with no remainder 5. Finds out the first array element having inputed value 6. Sorts the array in increasing fashion 7. Display the array The functions are performed on server, and return results to client Program Requirement 2: Create graphics user interface application to upload text file from RMI Client ln RMI Server. The function is performed on RMI server Program Requirement 3: Create graphics user interface application using RMI technology to allow admin log in system and can add, edit, remove the items from database. The functions are performed on server

Practice document

Software reuse and integration

Program Requirement 4: Create graphics user interface application using RMI technology. Server applies the functions processing string: 1. Convert string to uppercase 2. Convert string to lowercase 3. Invert the characters of string 4. Trim the spaces at the first, end of the string, and trim the excessive spaces between the string 5. Convert the first character of string to uppercase 6. Convert the first character of words to uppercase Program Requirement 5: Create graphics user interface application to read text file using services applied by RMI Server : 1. Open file 2. Read each line of file 3. Close file

You might also like