Question: Implement Check-out Customer use case using an object-oriented programming language (such as Java, C++ or C#) as specified in the communication diagrams (Fig. 1 and

Implement Check-out Customer use case using an object-oriented programming language (such as Java, C++ or C#) as specified in the communication diagrams (Fig. 1 and Fig. 2). The classes and their operations are given below and a sample data for entity objects are also given. The logic (pseudocode) for operations provided by Check-out Manager class is specified. When your program requests authorizing a credit card from Bank, you need to enter an authorization number (4-digit number) through a screen provided by Bank Interface object. Also a credit card number will be entered by you via a screen provided by Card Reader Interface object. A receipt and a bill will be printed out on screens in Receipt Printer Interface and Bill Printer Interface objects respectively. State your assumptions if necessary.

Implement Check-out Customer use case using an object-oriented programming language (such as

Java, C++ or C#) as specified in the communication diagrams (Fig. 1

and Fig. 2). The classes and their operations are given below and

Fig. 1 Communication Diagram for Check-out Customer use case Approved Credit Card Case updateReference in Room, in Referencel) checkOut in Room, out Bill) A1: Room Number readBill(in Room, out Bill) readTota in Room, out Total) A1.2, A3.8: Read Bill A2.2- Read Total A3.3: Update Reference Number A3.12: A1.5 Display Bill Bill Printed displayMessage in BillPrinted) A1.3, A3.9: Bill A2.3: Total A1.4: Bill A.l: Request Bill A3.11: Bill printed requestBilin Room, out Bill printReceipt in Eard, in Total in releaseRoom in Room, out RoomReleased) A3.4 Release Room A3.2: Print Receipt Room :Chock-out A3.10: Print Bill Manager A3.5 Room Released printBilin BlBallPrinterinterface readCard( in Cardw) Credit Card d in Card, in Total, out Result) A2 [creditCard]: Number A3.1: Pay Number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!