Software model of an atm machine

Assignment Help Basic Computer Science
Reference no: EM13846407

Consider a software model of an ATM machine that supports the following use cases:

Use Case 1:

1. User swipes his/her debit card, which provides the system with the user's bank account number.

2. User is asked to provide his/her pin number.

3. User is asked whether he/she wishes to check his balance or withdraw money.

4. User selects to withdraw money.

5. System displays the amount withdrawn and the remaining balance.

6. User is asked whether he/she would like to conduct another transaction.

Use Case 2:

1. User swipes his/her debit card, which provides the system with the user's bank account number.

2. User is asked to provide his/her pin number.

3. User is asked whether he/she wishes to check his balance or withdraw money.

4. User selects to withdraw money.

5. System displays error message that the amount to be withdrawn exceeds the balance.

6. User is asked whether he/she would like to conduct another transaction.

Use Case 3:

1. User swipes his/her debit card, which provides the system with the user's bank account number.

2. User is asked to provide his/her pin number.

3. User is asked whether he/she wishes to check his balance or withdraw money.

4. User selects to check balance.

5. System displays the user's account balance.

6. User is asked whether he/she would like to conduct another transaction.

Use Case 4:

1. User swipes his/her debit card, which provides the system with the user's bank account number.

2. User is asked to provide his/her pin number.

3. System displays that pin number is incorrect.

4. User is asked to provide his/her pin number up to two more times.

5. System terminates after third failed attempt.

Problem 1: Identify at least three classes that may be required in an object oriented design that supports the above use cases. Generate a CRC card for each class indicating its responsibilities and collaborators. Hint: One of your classes should be BankAccount.

Problem 2: Generate a UML class diagram showing the classes and any relationships between them. Be sure to include a list of the attributes and methods of each class in the diagram.

Problem 3: Implement your design in Java. You should have a separate source file for each class as well as a tester class for demoing the functionality of your design.

Reference no: EM13846407

Questions Cloud

Problem regarding the binary calculations : Do the following binary calculations.
What amount of new investment income : Crappola Hospital outside of Outback, UT has been thinking about changing its’ payroll period from a bi weekly to a monthly. The administrator, Baskitcase says they currently have 600 employees with an annual payroll of $18 million. what amount of ne..
Compare your various absorption spectra : Compare your various absorption spectra and explain what they mean. Compare your absorption spectra to each other and to those provided by the instructor. What differences among the spectra do you see. Explain the similarities and differences in d..
Annual increase in selling price : Assume that in January 2013, the average house price in a particular area was $278,400. In January 2000, the average price was $195,300. What was the annual increase in selling price?
Software model of an atm machine : Consider a software model of an ATM machine that supports the following use cases:
Accounting statement of cash flows : You are researching time manufacturing and have found the following accounting statement of cash flows for the most recent year. You also know that the company paid $98.3 million in current taxes and had an interest expense of $48.3 million.
Describe the conquest of native americans by white europeans : Describe the conquest of native Americans by white Europeans
How long and at which setting it took to melt it : Put about 1/4 teaspoon of salt by itself in the tin can and set over the burner, and assure that you have good ventilation
What is its dividend growth rate : If the price of Hanbags Inc. stock is $43, its required return is 20% and the last dividend paid was $3, what is its dividend growth rate?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  How many orders invoices were shipped

How many orders (invoices) were shipped by Speedy Express?

  Demonstrate criteria of a good design and good navigation

Good Design - This second web site should demonstrate our criteria of a good design and good navigation. Prepare a self-assessment document to post to the dropbox that addresses the following

  Intrusion detection system (ids), and authentication server.

Using the network diagram below, your task is to incorporate the devices on the lower right into the diagram to create a secure corporate network. The devices you need to incorporate into the network diagram include: Web server, ftp server, vulnerabi..

  Access and control of personal information

In debates regarding access and control of personal information, it is sometimes argued that an appropriate balance needs to be struck between individuals and organizations

  Calculate the branch prediction accuracy of various

As a computer architect it is your job to calculate the branch prediction accuracy of various schemes to evaluate which is the best branch predictor i.e the one with the highest accuracy. Given the following branch patterns,(a) NT,T,NT,T,NT (b) T,T,N..

  The goods are substitutes

(Substitutes and Complements) For each of the following pair of goods, determine whether the goods are substitutes, complements, or unrelated: Peanut butter and jelly, Private and public transportation, coke and pepsi, alarm clocks and automobiles, g..

  Explain in detail each step of the machine cycle show the

high-level computer languages are created to be understood by humans. as a result the keywords and the commands of

  How much laser be tipped before light no longer continues

If a laser is to be pointed into the end of the fibre, but is "tipped" to one side by θ degrees, how much can the laser be "tipped" before the light no longer continues down the fibre?

  Case problem- c & m veterinary clinic

Case Problem: C & M Veterinary Clinic, C & M Veterinary Clinic has been treating small and medium-sized animals in the Marlow, Oklahoma, and area for more than 10 years. The staff veterinarians perform all checkups and surgeries, and the staff te..

  Find transfer time for asector-average rotational latency

Disk gets the request to access the random sector on random track. Suppose head starts at track 0. Determine the average seek time? average rotational latency?

  Calculate population increase

The output then would be that count. You will want to use 2 variables, one for the index of the for loop ( and the counter in the do loop) and the other variable to keep track of your "current" population.

  Network security & how do they work together

1. In reference to firewalls, proxies, Intrusion Prevention Systems and Intrusion Detection Systems. Why are they important for network security & how do they work together?

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