Question
Consider the following operation specification, regarding the entry of a customer in an amusements park. Entry is granted upon presentation of a specific card; there
Consider the following operation specification, regarding the entry of a customer in an amusements park.
Entry is granted upon presentation of a specific card; there are lifetime cards and temporary ones. Once the
card is received/read, the operation needs to do the following.
Check if the card is a lifetime card. If it is, allow entry. If instead the card is temporary, check if it is expired. If
it is not expired, allow entry. If instead it is expired, check whether the customer wants to renew it. If the
customer does not want to renew, decline entry. If the customer wants to renew, charge the renewal fee and
then allow entry.
Give this specification with an activity diagram or in controlled English / pseudo-code.
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