96.6k views
4 votes
Use Case Model The Pizza Ordering System allows the user of a web browser to order pizza for home delivery. To place an order, a shopper searches to find items to purchase, adds items one at a time to a shopping cart, and possibly searches again for more items. When all items have been chosen, the shopper provides a delivery address. If not paying with cash, the shopper also provides credit card information. The system has an option for shoppers to register with the pizza shop. They can then save their name and address information so that they do not have to enter this information every time that they place an order. Develop a use case diagram, for a use case for placing an order, PlaceOrder. The use case should show a relationship to two previously specified use cases, IdentifyCustomer, which allows a user to register and log in, and PaybyCredit, which models credit card payments. Q2.1 Create a use Case model for this system. A complete model should make use of all Use Case modeling features discussed in class. Q2.2 Chose one use case from your model, and create its Use Case Scenario.

User Janih
by
8.4k points

1 Answer

4 votes

Final answer:

A use case model is created for the Pizza Ordering System, including a use case diagram and a use case scenario for the PlaceOrder use case.

Step-by-step explanation:

Use Case Model for Pizza Ordering System

The use case model for the Pizza Ordering System includes three use cases: IdentifyCustomer, PaybyCredit, and PlaceOrder. The PlaceOrder use case is the focus of this question. It has a relationship with the IdentifyCustomer use case, which allows users to register and log in, and the PaybyCredit use case, which models credit card payments.

Use Case Scenario: PlaceOrder

Actor: Shopper

Preconditions: The shopper has searched for items to purchase and added them to the shopping cart.

Flow of Events:

  1. The shopper selects the PlaceOrder option.
  2. The system prompts the shopper to provide a delivery address.
  3. The shopper enters the delivery address.
  4. If not paying with cash, the system prompts the shopper to provide credit card information.
  5. The shopper enters the credit card information.
  6. The system confirms the order and provides an order number.

Postconditions: The order is placed, and the shopper receives an order number for reference.

User Daniel Byrne
by
8.4k points