Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose that you have identified one use case named purchase products online in a sale management system. The template of the use case is described

image text in transcribedimage text in transcribedimage text in transcribed

image text in transcribed

Suppose that you have identified one use case named "purchase products online" in a sale management system. The template of the use case is described as follows: Use Case: Purchase products online Normal Flow: 1. Customer browse online menu of products. 2. Customer selects a product and the quantity on the menu and adds it into the shopping cart. Loop: Repeat 2 for each product item until all wanted items are in shopping cart. 3. Customer checkouts the selected products for payment. 4. Customer enters the number of the "Frequent buyer card" if applicable. 5. System calculates the total, deducts promotional deductions (if any), adds sales tax, and displays the amount that the customer needs to pay. 6. Customer selects service method (delivery or pickup) and the desired time. 7. Customer enters contact information. 8. Customer enters credit card information. 9. Customer commits order. 10. System verifies the credit card (extend 145: Validate Credit Card.) 11. System charges the credit card 12. System returns an order number to the customer. 13. System notifies Sales Staff for the created new purchase order. 14. Customer logs off website Sub-Flows: 7.1 Customer enters contact phone & e-mail 7.2 Customer enters address. 8.1 Customer enters credit card number 8.2Customer enters credit card holder 8.3 Customer enters credit card expire date Alternate Flow/ Exceptions: 1.a If the customer could not find the wanted products online 1.a.1 log out the system and exist 5.a if the customer has a frequent buyer card, 5.a.1 system provides the discount percentage in the calculations for the purchased products. 10.a. if the verification of the credit card is failed, 10.a.1 Notify the customer of the error message. 10.a.2 go step 14. Table 4.1: The partial use case template a) Your task is to identify the class candidates (you can underscore them first) in the template table 4.1 and fill in the table to summarize classes, together with their responsibilities. Only true classes should be included in the following table (6+ classes are required) (8 marks) Sale Products: Preliminary Class Candidates Class Responsibilities b) Create a class diagram for "Purchase & its associations". The viewpoint of the class diagram is to show the Purchase class with its associations and multiplicity to its collaborators and related classes in the use case. (Draw the Class Diagram either using a software tool or handwriting on a paper then take the photo to upload the file in the below answer box) (12 marks) A- B I 1 E $ U S X2 x2 = ili = ll # X a. (8 marks) Preliminary Class Candidates Class Responsibilities b) Create a class diagram for "Purchase & its associations". The viewpoint of the class diagram is to show the Purchase class with its associations and multiplicity to its collaborators and related classes in the use case. (Draw the Class Diagram either using a software tool or handwriting on a paper then take the photo to upload the file in the below answer box) (12 marks) A- B 1 1 E SS O US X2 x E # a. (8 marks) Preliminary Class Candidates Class Responsibilities b) Create a class diagram Suppose that you have identified one use case named "purchase products online" in a sale management system. The template of the use case is described as follows: Use Case: Purchase products online Normal Flow: 1. Customer browse online menu of products. 2. Customer selects a product and the quantity on the menu and adds it into the shopping cart. Loop: Repeat 2 for each product item until all wanted items are in shopping cart. 3. Customer checkouts the selected products for payment. 4. Customer enters the number of the "Frequent buyer card" if applicable. 5. System calculates the total, deducts promotional deductions (if any), adds sales tax, and displays the amount that the customer needs to pay. 6. Customer selects service method (delivery or pickup) and the desired time. 7. Customer enters contact information. 8. Customer enters credit card information. 9. Customer commits order. 10. System verifies the credit card (extend 145: Validate Credit Card.) 11. System charges the credit card 12. System returns an order number to the customer. 13. System notifies Sales Staff for the created new purchase order. 14. Customer logs off website Sub-Flows: 7.1 Customer enters contact phone & e-mail 7.2 Customer enters address. 8.1 Customer enters credit card number 8.2Customer enters credit card holder 8.3 Customer enters credit card expire date Alternate Flow/ Exceptions: 1.a If the customer could not find the wanted products online 1.a.1 log out the system and exist 5.a if the customer has a frequent buyer card, 5.a.1 system provides the discount percentage in the calculations for the purchased products. 10.a. if the verification of the credit card is failed, 10.a.1 Notify the customer of the error message. 10.a.2 go step 14. Table 4.1: The partial use case template a) Your task is to identify the class candidates (you can underscore them first) in the template table 4.1 and fill in the table to summarize classes, together with their responsibilities. Only true classes should be included in the following table (6+ classes are required) (8 marks) Sale Products: Preliminary Class Candidates Class Responsibilities b) Create a class diagram for "Purchase & its associations". The viewpoint of the class diagram is to show the Purchase class with its associations and multiplicity to its collaborators and related classes in the use case. (Draw the Class Diagram either using a software tool or handwriting on a paper then take the photo to upload the file in the below answer box) (12 marks) A- B I 1 E $ U S X2 x2 = ili = ll # X a. (8 marks) Preliminary Class Candidates Class Responsibilities b) Create a class diagram for "Purchase & its associations". The viewpoint of the class diagram is to show the Purchase class with its associations and multiplicity to its collaborators and related classes in the use case. (Draw the Class Diagram either using a software tool or handwriting on a paper then take the photo to upload the file in the below answer box) (12 marks) A- B 1 1 E SS O US X2 x E # a. (8 marks) Preliminary Class Candidates Class Responsibilities b) Create a class diagram

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

Students also viewed these Finance questions