Question: Deliverables: Problem # 1 : You are given the following Z - language state schema for a Union Office. [ NAME | TEL ] Messages
Deliverables:
Problem # : You are given the following Zlanguage state schema for a Union Office.
NAMETEL
Messages AlreadxaExist Dota Found InsufficientFundNotsodember
cline Members: mathbbP NAME ExecutiveMembers: mathbbP NAME Manager: NAME UnionBank: NAME rightarrow mathbbN Dir: NAME leftrightarrow TEL hline Manager in Members ExecutiveMember subseteq Members Membersdom UnionBank Membersdom Dir hlineendarray
Write Zlanguage specification for the following Operation. Make all these operations robust by addressing all possible error states and provide a response! Message after each operation execution.
tableSchema Name,SpecificationAddMember,tableThis operation schema takes a member name and telephone number tobe added to the system. Every new member starts with zero bankaccountNewExecutixe,This operation promotes a member to become an executive member.NewPresident,tableThis operation schema takes an executive member name and promoteit to be the union president.WithdrawMonex,tableThis operation schema takes a member name to withdraw sufficientamount from his balance.AddMonex,tableThis operation schema adds a positive amount of money to themembers account.GetBalance,Returns the balance of a given memberUpdateTelephone,This operation schema updates a member's telepnone numberGetTelephone,This operations return the telephone number of a given member namePrintMembersList,This operation returns the list of members namesPrintExcutiveList.,This operation returns the list of Executive members names
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
