Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the Z specification for bank account system in my pics. Analyze each of the following four operation schemas, and identify their pre and post-conditions:-

Consider the Z specification for bank account system in my pics. Analyze each of the following four operation schemas, and identify their pre and post-conditions:-

-Deposit (should allow depositing any amount into the account)

-Withdraw (should allow withdrawal such that the minimum balance remains Rs. 1000)

-Inquire (to check current balance of the account)

-Open a new account

If you think precondition of an operation schema does not cover all possible cases, define additional operation schemas to cover the missing pre-conditions.

ACCOUNT,PERSON,ACCNUM,BALANCE,TYPE:N BankAccount OperationToday,OpeationLimmit,AccHolder,CreditLimmit:N AccHolder: ACCOUNT +PDeposit ABankAccount a?:Ammount n?:AccNum n?edom Credit a?> Credit=Credite {n? - Credit n?+a?} Deposit=Account+a? OperationWithdraw ABankAccount a?:Ammount n?:AccNum n?edom Credit -(AccountType=New) a?>0 A a?<ammountLimmit Credit>a? A Credit>1000NewAccOneHolder ABankAccount o?:OpenAccount an?:ACCNUM p?:PERSON o? CAccount credit=0 p?=an? Am? an?> Account=Account U {o?}NewAccTwoHolder ABankAccount o?:OpenAccount an?:ACCNUM p?:PERSON an?=p? p=2 

ACCOUNT,PERSON,ACCNUM,BALANCE,TYPE:N Bank Account Operation Today, OpeationLimmit,AccHolder, CreditLimmit:N AccHolder: ACCOUNT PERSON Credit:ACCNUMBALANCE Account:Z NewAcccount: Y AccountType:TYPE dom AccHolder= Account Y= 2 Credit 0 Credit

Step by Step Solution

3.38 Rating (154 Votes )

There are 3 Steps involved in it

Step: 1

Z Specfication is a tool for complex system using abstr... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial Accounting: A Business Process Approach

Authors: Jane L. Reimers

3rd edition

978-013611539, 136115276, 013611539X, 978-0136115274

More Books

Students also viewed these Accounting questions

Question

=+a) Compute the EV for each alternative product (decision).

Answered: 1 week ago

Question

Which ego state does the character spend the most time in?

Answered: 1 week ago