Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
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