Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Objective: The objective of this assignment is to draw a state machine diagram and a class diagram. Assignment Specification: 1. A description of the behavior

image text in transcribed

image text in transcribed

Objective: The objective of this assignment is to draw a state machine diagram and a class diagram. Assignment Specification: 1. A description of the behavior of an Automated Bank Machine (ABM) is given below. Draw a state machine diagram describing its behavior. (25 points) A user begins a transaction at the ABM by entering a bank card. If the card is readable by the machine, the user is prompted to enter their personal identification number (PIN). Once this number has been entered, a menu is presented to the user containing the following options: show account balance, withdrawal, with receipt and withdrawal, without receipt. If the user selects one of the withdrawal options, they are prompted to enter an amount of money to withdraw: the amount entered must be a multiple of 10. The user's PIN is validated when the ATM sends the details of the transaction to the bank's remote computer. The remote computer responds, either approving the transaction or with a message saying that the PIN is invalid. If the PIN is invalid, the user is given the option of re-entering it (provided s/he has not entered three invalid PIN's) and the selected transaction is retried. Once three invalid PINs have been entered, the transaction is terminated. If a valid PIN is entered, further processing depends on the transaction type selected. For a "show balance" transaction, the balance is displayed on the screen. The user has to confirm that s/he has seen it and the user is returned to the transaction menu. A withdrawal transaction may fail if the user has exceeded the amount of money that can be urithdrawn from the account: in this case an error message is displayed and, after the user confirms s/he has seen it, the user is returned to the transaction menu. Otherwise, the user's card is returned and the money is issued, followed by the receipt if required. Hint: The balance is available from the remote computer. The machine may enter some state where it communicates the PIN and the operation (either to find the balance or attempt to withdraw the amount stipulated by the user). The remote computer may give any one of the following responses-a) the PIN is invalid and the attempt # by the user, b) the operation to withdraw the specified amount of money is valid. c) the account balance. Use the response by the remote machine to make a transition to the appropriate state. 2. The following problem is based on the previous assignments (Assignment-1 and Assignment-2). For your convenience, the same problem description is given below: Members join the system by registering online (username (email), password, address, phone no) and including a credit card to pay the membership fees. Most memberships are for one year, but member- ships as short as two months are available. Throughout the year, the streaming service offers various discounts on its regular membership prices (e.g., tuo memberships for the price of one for Christmas). It is common for members to pay different amounts for the same length of membership. The service sends out reminder emails to members asking them to renew their memberships one month before their memberships expire. Some members have become angry when asked to renew at a much higher rate than their original membership contract. That is why the organization wants to track the price paid so that the manager can override the regular prices with special prices when members are asked to reneu. The system must track these new prices so that renewals can be processed accurately. The manager wants the system to track each time a member visits the site. The system will then identify the heavy users and generate a report so that the manager can ask them to renew their memberships early, per- haps offering them a reduced rate for early renewal. Likeurise, the system should identify members who have not visited the site in more than a month so that the manager can email them and attempt to re-interest them in the service. Draw a class diagram for the streaming system. Add attributes and methods when necessary. You do not have to include getters and setters for attributes. Visibility modifiers (public, private, etc.), multiplicities, attribute types, method return types are required. (25 points)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introductory Relational Database Design For Business With Microsoft Access

Authors: Jonathan Eckstein, Bonnie R. Schultz

1st Edition

1119329418, 978-1119329411

More Books

Students also viewed these Databases questions

Question

A list has 4 entries: 1 , 2 3 and 4 . The SD of that list

Answered: 1 week ago