Question

Suppose that in a banking system a transfer is carried out in the following way: a transfer object is created to control the interaction, and the two accounts and the amount to be transferred are then passed as parameters to a ‘doTransfer()’ method in the transfer object. Draw a collaboration diagram, based on based on the below object diagram, illustrating this interaction. Draw a sequence diagram showing the same interaction and discuss which is the most suitable diagram in this case.

:Bank withdraw(50) deposii(50) a1 Account a2: Account

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Transfer 1. doTransfer(debitAccount, creditAccount, Amount Bank 2. Success/Failure messageTransfer Bank Transfer a1 will be debitAccount, a2 will be creditAccount, Amount is 50 doTransfer(debitAccount, creditAccount

This diagram is at low level. In real life scenarios, transaction will happen in a different way.

You will have a object of Transaction/Account/User and those objects will contain data about debitAccount, creditAccount, amount, transactionId, message etc...

Add a comment
Know the answer?
Add Answer to:
Suppose that in a banking system a transfer is carried out in the following way: a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Question 1: In a tabular form, list the fundamental system modeling perspectives as context, interaction, structural,...

    Question 1: In a tabular form, list the fundamental system modeling perspectives as context, interaction, structural, and behavioral and provide the names of corresponding UML diagrams that best fits to each model perspective. When applicable, provide subcategories for the system modeling perspectives, as well as possible alternative diagrams. Question 2: Imagine you are hired to design a software FBI-HRSW for FBI to be used in its Human Resources Department to hire job applicants. Draw the context model for the FBI-HRSW...

  • The opening case, ‘Hackers Attack the SWIFT Global Banking Network’, discusses breaches in the system of...

    The opening case, ‘Hackers Attack the SWIFT Global Banking Network’, discusses breaches in the system of several banks that are a part of the SWIFT network. The case is an example of the importance of information system controls. Explain some of the security risks associated with information systems as well as some security and control measures that can be implemented to protect against these security risks. Hackers Attack the SWIFT Global Banking Network SWIFT, which stands for Society for Worldwide...

  • please read instructions on the first picture and follow it Discussion Board: Chapter 1 Due: Jun...

    please read instructions on the first picture and follow it Discussion Board: Chapter 1 Due: Jun 28, 2019 at 11:59 PM Please read the article titled Evolution of Operations Planning and Control: from production to supply chains In at least three paragraphs, describe how and why the focus of operations planning and control has changed over time. While one might argue that answers consisting of sentences quoted from articles do not represent plagiarism, I do not consider them acceptable, and...

  • please read instructions on the first picture and follow it Discussion Board: Chapter 1 Due: Jun...

    please read instructions on the first picture and follow it Discussion Board: Chapter 1 Due: Jun 28, 2019 at 11:59 PM Please read the article titled Evolution of Operations Planning and Control: from production to supply chains In at least three paragraphs, describe how and why the focus of operations planning and control has changed over time. While one might argue that answers consisting of sentences quoted from articles do not represent plagiarism, I do not consider them acceptable, and...

  • 1. Consider a grocery supermarket planning to computerize their inventory management. The items on shelves will...

    1. Consider a grocery supermarket planning to computerize their inventory management. The items on shelves will be marked with Radio Frequency Identification (RFID) tags and a set of RFID reader-devices will be installed for monitoring the movements of the tagged items. Each tag carries a 96-bit EPC (Electronic Product Code) with a Global Trade Identification number, which is an international standard. The RFID readers are installed on each shelf on the sales floor. The RFID system consists of two types...

  • SECTION A (50) Read the case study below and answer the questions. SHORT RUN STABILIZATION AND...

    SECTION A (50) Read the case study below and answer the questions. SHORT RUN STABILIZATION AND LONG RUN COMPETITIVENESS: THE LAVITAN CASE Growth of a young country Latvia – a small, young country on the east coast of the Baltic Sea – has recently earned the title of a ‘‘tiger’’. After gaining its independence from the Soviet Union in 1991, the country embarked upon a challenging road of transitioning from a planned to a market economy. The first decade proved...

  • All of the following questions are in relation to the following journal article which is available...

    All of the following questions are in relation to the following journal article which is available on Moodle: Parr CL, Magnus MC, Karlstad O, Holvik K, Lund-Blix NA, Jaugen M, et al. Vitamin A and D intake in pregnancy, infant supplementation and asthma development: the Norwegian Mother and Child Cohort. Am J Clin Nutr 2018:107:789-798 QUESTIONS: 1. State one hypothesis the author's proposed in the manuscript. 2. There is previous research that shows that adequate Vitamin A intake is required...

  • I have this case study to solve. i want to ask which type of case study...

    I have this case study to solve. i want to ask which type of case study in this like problem, evaluation or decision? if its decision then what are the criterias and all? Stardust Petroleum Sendirian Berhad: how to inculcate the pro-active safety culture? Farzana Quoquab, Nomahaza Mahadi, Taram Satiraksa Wan Abdullah and Jihad Mohammad Coming together is a beginning; keeping together is progress; working together is success. - Henry Ford The beginning Stardust was established in 2013 as a...

  • 10. Write a one-page summary of the attached paper? INTRODUCTION Many problems can develop in activated...

    10. Write a one-page summary of the attached paper? INTRODUCTION Many problems can develop in activated sludge operation that adversely affect effluent quality with origins in the engineering, hydraulic and microbiological components of the process. The real "heart" of the activated sludge system is the development and maintenance of a mixed microbial culture (activated sludge) that treats wastewater and which can be managed. One definition of a wastewater treatment plant operator is a "bug farmer", one who controls the aeration...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT