In: Computer Science
Description of problem domain: the customer goes to the car dealer to purchase a car. First, the customer works with the salesperson who lists available cars from the dealer’s stock. If the customer selects a car, he may test-drive the car. If he feels satisfied with the car, he will negotiate the price with the salesperson. The customer may bring his old vehicle for trade-in. If the customer and the salesperson agree upon the final price (including the trade-in price if the customer has a trade-in car) after negotiation, the customer will work with the finance manager on payment and possible car loan. If the customer needs a car loan, the finance manager must retrieve the customer’s credit report from an external credit rating service database. If the customer’s credit rating (on the credit report) is not good for granting the car loan, the customer and the finance manager will cancel the deal (since the customer cannot pay off the purchase at one time). If the credit rating is good and the car loan is approved, the finance manager processes the car loan and takes any down payment the customer would like to pay. After the payment is completed, the finance manager will exchange the ownership of the car(s) (including the purchased and the traded-in car if any). To exchange ownership, the finance manager and the customer must sign a contract. Now the car sale transaction is completed.
Note: 1) When the customer purchases a vehicle from a dealer, they must either pay off the total cost or get a car loan with necessary down payment. If the customer is granted a car loan, then the bank which issues the car loan pays the rest of the total cost after the down payment from the customer. That is, the car dealer gets full payment for a sale and the customer will pay off the loan to the bank later. If the customer cannot get a car loan, then he must pay off the total purchase cost at one time or cancel the purchase.2) A contract is the legal document that officially transfers the ownership of a property like car.
Part 1: Draw a use case diagram (10 points)Grading Criteria: Correctly draw all required actors, use cases, and relationships.1) One actor is worth 1 point2) One use case is worth 1 point
Part 2: Draw a class diagram (10 points)