An Automatic Teller machine (ATM) is an Electronic Device that provides services like balance inquiry, cash withdraw and money transfer etc. The ATM system is considered an example of a safety critical system and hence the need to formalize its services. To formalize the ATM system we need to first declare variables to be used. - An ATM card contains the following information CARD := cardNo | accountNo | expiryDate - After any transaction the ATM machine gives the following responses ATMRESPONSE := operationSuccessfull | operationFailed - An ATM can be in two states STATE := available | busy - For any withdraw operation the ATM machine has restrictions on the minimum and maximum amount one can withdraw. AMOUNT := minimumAmount | maximumAmount - The other important variable is the date DATE := issueDate | expiryDate | todayDate - The ATM generates the following possible error messages ERROR := invalidCard | invalidPin | invalidAmount | insufficientBalance - Below is a schema for a Bank Account Account accountName : PNAME accountNo : PNUMBER balance : NUMBER →7N Has : NAME ↔ NUMBER domHas = accountName balance(NUMBER) ≥ 0 Use the information provided above to develop schema that describe the following ATM operations. (a) Card reading (b) Balance inquiry (c) Withdraw (d) Money transfer from one account to the other

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 20PE: When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making...
icon
Related questions
Question

An Automatic Teller machine (ATM) is an Electronic Device that provides services like balance inquiry, cash withdraw and money transfer etc. The ATM system is considered an example of a safety critical system and hence the need to formalize its services. To formalize the ATM system we need to first declare variables to be used.
- An ATM card contains the following information CARD := cardNo | accountNo | expiryDate - After any transaction the ATM machine gives the following responses ATMRESPONSE := operationSuccessfull | operationFailed - An ATM can be in two states STATE := available | busy - For any withdraw operation the ATM machine has restrictions on the minimum and maximum amount one can withdraw. AMOUNT := minimumAmount | maximumAmount - The other important variable is the date DATE := issueDate | expiryDate | todayDate - The ATM generates the following possible error messages ERROR := invalidCard | invalidPin | invalidAmount | insufficientBalance - Below is a schema for a Bank Account
Account accountName : PNAME accountNo : PNUMBER balance : NUMBER →7N Has : NAME ↔ NUMBER domHas = accountName balance(NUMBER) ≥ 0
Use the information provided above to develop schema that describe the following ATM operations.
(a) Card reading
(b) Balance inquiry
(c) Withdraw
(d) Money transfer from one account to the other

Expert Solution
steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Knowledge Booster
Problems on Dynamic Programming
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr