1
$\begingroup$

I have Z specification of Banking system, whose fragments are:

enter image description here

and

enter image description here

I think that the specification is OK, but my professor says that this specifiction is completely wrong, because AddAccount operation allows to change the information about other clients (i.e. the information about accounts of other clients) and information about bank's customers generally (e.g. he says that operation allows add or delete other customers to the Bank). I can not see this permission and what I need to correct. Maybe some advice is available?

$\endgroup$
  • 2
    $\begingroup$ Don't use images as main content of your post. This makes your question impossible to search and inaccessible to the visually impaired; we don't like that. Please transcribe text and mathematics (note that you can use LaTeX) and don't forget to give proper attribution to your sources! $\endgroup$ – Raphael Aug 5 '16 at 12:09
  • $\begingroup$ I'm sorry I can't help with Z specification, but why is the account balance a real number? Wouldn't a whole number of cents in $\mathbb{N}$ or $\mathbb{Z}$ be better? $\endgroup$ – Lieuwe Vinkhuijzen Aug 7 '16 at 0:15
  • $\begingroup$ @Lieuwe Vinkhuijzen this is a rational number, not a deprecated for this purpose generic machine floating point value representation. So, it may be ok, if some local specifications aren't directly against that, a lot of currencies haven't any "cents" and can be divided unlimited finite times. $\endgroup$ – Les Aug 12 '16 at 9:55
  • 1
    $\begingroup$ This specification of the AddAccount operation admits implementations that are probably not intended. For instances, one could erase every pre-existing account and just have a single account, namely the one to be added. To fix this I'd suggest to describe the final state of the Bank in terms of its initial state and the inputs. $\endgroup$ – Kai Nov 27 '16 at 12:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.