Question: Question 4: Z Exercise: (4 marks] Consider the following Z specification for a system which records bank accounts: a. Identify the state invariant. Briefly describe
![Question 4: Z Exercise: (4 marks] Consider the following Z specification](https://s3.amazonaws.com/si.experts.images/answers/2024/08/66cf34fbc160d_54766cf34fb4b3c7.jpg)
Question 4: Z Exercise: (4 marks] Consider the following Z specification for a system which records bank accounts: a. Identify the state invariant. Briefly describe what it states. b. Write the GetBalance schema. It specifies an operation that takes an account as input and returns the corresponding balance. Assume that the account is in known. c. Write the IsSavings Account schema. It specifies an operation that takes an account as input and returns its type according to the balance amount, if the balance is more than or equal 10000 then it will return the type as Savings otherwise it is considered Current. Assume that the account is in known. Question 4: Z Exercise: (4 marks] Consider the following Z specification for a system which records bank accounts: a. Identify the state invariant. Briefly describe what it states. b. Write the GetBalance schema. It specifies an operation that takes an account as input and returns the corresponding balance. Assume that the account is in known. c. Write the IsSavings Account schema. It specifies an operation that takes an account as input and returns its type according to the balance amount, if the balance is more than or equal 10000 then it will return the type as Savings otherwise it is considered Current. Assume that the account is in known
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
