Case Study: for Question-4
Consider the following operation contract of a tour reservation system
Name: makeReservation (Date, Customer_Inf, Duration, Credit_card)
Responsibility: Record the payment, calculate balance and print receipt.
Type: System
Cross Reference: System Functions R2.1
Use cases: Process Reservation
Pre-conditions:
Post-conditions:
Reservation was created
Reservation was associated with Cashier
Date of Reservation was set
Customer_Inf of the Reservation was set
Payment was created
Payment was associated with Reservation
Payment was computed from Duration and Payment.amount of Payment was set
Payment mode of Payment was set to “Credit” and Credit_Card number of the Payment was is set.
Question 4: Scenario type
Create the class diagram from the communication diagram.
Comments
Leave a comment