In: Computer Science
A computer manufacturer offers the possibility of purchasing computers via the Internet. The customer can select a computer on the manufacture’s web page. The computers are classified into servers, desktops and portables. The customer can select a standard configuration or can build a desired configuration online. The configurable components are presented as pick lists of available options. For each new configuration, the system can calculate price. To place an order, the customer must fill out the shipment and payment information. Acceptable payment methods are credit cards and checks. Once the order has been entered, the system sends a confirmation e-mail message to the customer with details of the order. While waiting for the arrival of the computer, the customer can check the order status online at any time. The back end order processing consists of the steps needed to verify the customer’s credentials and payment method, to request the ordered configuration from the warehouse, to print an invoice, and to request the warehouse to ship the computer to the customer. Consider the following extended requirements: The customer uses the manufacturer’s online shopping web page to view the standard configuration of the chosen server, desktop or portable computer. The customer chooses to view the details of the configuration, perhaps with the intention of buying it as it or to build a more suitable configuration. The price for each configuration can be computed at the customer’s request. The customer may choose to order the computer online or may request that the salesperson contact him/her to explain order details, negotiate the price, etc. before the order is actually place. To place the order, the customer must fill out an online form with shipment and invoice address, and with payment details (credit card or cheque). After the customer’s order has been entered into the system, the salesperson sends and electronic request to the warehouse with details of the ordered configuration. The details of the transaction, including an order number and customer account number, are e-mailed to the customer, so that the customer can check the status of the order online. The warehouse obtains the invoice from the salesperson and ships the computer to the customer.
Question: For the above Scenario draw the UML diagrams
Q1: Draw Class diagram and make possible assumptions?
1. In this particular class diagram, we are given a scenario where a customer purcchases a computer from a types of them present online.
2. In this we have to first identify the classes: Computer is a class as it has some attributes and functions. And inturn it has also classified into three types which are in turn classified based on their configuration.
3. After identifying classses with the given info on product, we also have to identify the classes which are process oriented. Like payment, Verification, shipment, shipemnt status which have their own attributes and functions.
4. If we assume a customer orders a computer from internet with some configuration, after the selection he may have to give his credentials to be verified account holder on that web platform.
5. After verification, the payment class comes where it has function of transacting an amount to be paid to the seller. The verification on dependent on customer as he has to provide his correct details as the wrong ones may lead the order to be cancelled.
6. After successful payment he may be given an orderId so that he can track shipment status. Payment class is a dependancy class on verification as payment cannot get processed without verification.