Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 5 - 40marks Instruction Question 1 Question 2 Question 3 Question 4 7 Question 5 Question 6 Question 7 The informal descriptions of the
Question 5 - 40marks Instruction Question 1 Question 2 Question 3 Question 4 7 Question 5 Question 6 Question 7 The informal descriptions of the operations of the banking system is shown in the table below. Formalize it using the methods taught under schemas and specifications. Inputs Processing Outputs Open a deposit account amount If there are no account numbers left, then response, the response is 'No more account account numbers'. If the amount offered is nega- number tive, then the response is 'Overdrawn bal- ances are not allowed in deposit accounts'. Otherwise the account is opened in the input amount with an unused account number chosen by the system, and the response is 'Account opened'. The account number chosen is displayed. Open a current account amount If there are no account numbers left, then response, the response is 'No more account account numbers'. Otherwise the account is opened number in the input amount with an unused account number chosen by the system, and the response is Account opened'. The account number chosen is displayed. Question 8 Question 9 Question 10 Question 5 Cont'd Instruction Question 1 Close an account Question 2 Question 3 account number response, amount Question 4 Question 5 Question 6 Question 7 If the account number is not active, then the response is 'Not an active account number'. If the account number is active, but is a current account that is overdrawn, then the response is Deposit the stated amount to clear', and the output amount is the amount to be paid in to clear the account. Otherwise the account is removed from the records, the closing balance is output, and the response is 'Account closed'. Question 8 Question 9 Question 10 Question 5 Cont'd Instruction Question 1 Question 2 response, amount Question 3 Question 4 9 Question 5 Question 6 Make a deposit or a withdrawal account If the account number is not active, then number, the response is 'Not an active account amount number'. If the account is a deposit account that would become overdrawn, the response is 'Overdrawn balance not allowed', and an output amount is given to show the current balance of the account. Otherwise the balance of the account is changed according to the amount, positive amounts representing deposits, and nega- tive amounts representing withdrawals, and the response is 'Transaction complete'. Question 7 Question 8 Question 9 Question 10 Question 6 - 5marks each Instruction Question 1 Question 2 Question 3 Question 4 Modify your specification from Question 5 in the light of a new requirement, changing the response to making a deposit or a withdrawal as follows: 1. If the amount was positive, the response is to be "Deposit completed" Question 5 10 Question 6 Question 7 Question 8 Question 9 2. If the amount was negative, the response is to be "Withdrawal completed" Question 10 Question 5 - 40marks Instruction Question 1 Question 2 Question 3 Question 4 7 Question 5 Question 6 Question 7 The informal descriptions of the operations of the banking system is shown in the table below. Formalize it using the methods taught under schemas and specifications. Inputs Processing Outputs Open a deposit account amount If there are no account numbers left, then response, the response is 'No more account account numbers'. If the amount offered is nega- number tive, then the response is 'Overdrawn bal- ances are not allowed in deposit accounts'. Otherwise the account is opened in the input amount with an unused account number chosen by the system, and the response is 'Account opened'. The account number chosen is displayed. Open a current account amount If there are no account numbers left, then response, the response is 'No more account account numbers'. Otherwise the account is opened number in the input amount with an unused account number chosen by the system, and the response is Account opened'. The account number chosen is displayed. Question 8 Question 9 Question 10 Question 5 Cont'd Instruction Question 1 Close an account Question 2 Question 3 account number response, amount Question 4 Question 5 Question 6 Question 7 If the account number is not active, then the response is 'Not an active account number'. If the account number is active, but is a current account that is overdrawn, then the response is Deposit the stated amount to clear', and the output amount is the amount to be paid in to clear the account. Otherwise the account is removed from the records, the closing balance is output, and the response is 'Account closed'. Question 8 Question 9 Question 10 Question 5 Cont'd Instruction Question 1 Question 2 response, amount Question 3 Question 4 9 Question 5 Question 6 Make a deposit or a withdrawal account If the account number is not active, then number, the response is 'Not an active account amount number'. If the account is a deposit account that would become overdrawn, the response is 'Overdrawn balance not allowed', and an output amount is given to show the current balance of the account. Otherwise the balance of the account is changed according to the amount, positive amounts representing deposits, and nega- tive amounts representing withdrawals, and the response is 'Transaction complete'. Question 7 Question 8 Question 9 Question 10 Question 6 - 5marks each Instruction Question 1 Question 2 Question 3 Question 4 Modify your specification from Question 5 in the light of a new requirement, changing the response to making a deposit or a withdrawal as follows: 1. If the amount was positive, the response is to be "Deposit completed" Question 5 10 Question 6 Question 7 Question 8 Question 9 2. If the amount was negative, the response is to be "Withdrawal completed" Question 10
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started