Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

An organization has been entrusted with developing a registration and title system that maintains information about all vehicles registered in a particular state. For

An organization has been entrusted with developing a registration and title system that maintains information about all vehicles registered in a particular state. For each vehicle that is registered with the office, the system has to store the name, address, and telephone number of the owner; the start date and end date of the registra- tin; plate information (issuer, year, type, and number); sticker (year, type, and number); and registration fee. In addition, the following information is maintained about the vehicles themselves: the number, year, make, model, body style, gross weight, number of passengers, diesel- powered (yes/no), color, cost, and mileage. If the vehicle is a trailer, the parameters diesel-powered and number of passengers are not relevant. For travel trailers, the body number and length must be known. The system needs to maintain information on the luggage capacity for a car, maximum cargo capacity and maximum towing capacity for a truck, and horsepower for a motorcycle. The system issues registration notices to owners of vehicles whose registrations are due to expire after two months. When the owner renews the registration, the system updates the registration information on the vehicle. a. Develop an object-oriented model by drawing a class diagram that shows all the object classes, attributes, operations, relationships, and multiplicities. For each operation, show its argument list. b. Each vehicle consists of a drive train, which, in turn, consists of an engine and a transmission. (Ignore the fact that a trailer doesn't have an engine and a trans- mission.) Suppose that, for each vehicle, the system has to maintain the following information: the size and number of cylinders of its engine and the type and weight of its transmission. Add classes, attri- butes, and relationships to the class diagram to cap- ture this new information. c. Give a realistic example of an operation that you override in a subclass or subclasses. Add the opera- tion at appropriate places in the class diagram and discuss the reasons for overriding.

Step by Step Solution

3.43 Rating (159 Votes )

There are 3 Steps involved in it

Step: 1

Answer Explanation c Example We have two classes A child ... 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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Econometric Analysis

Authors: William H. Greene

5th Edition

130661899, 978-0130661890

More Books

Students also viewed these Economics questions

Question

preparing for and completing job interviews and considering offers.

Answered: 1 week ago

Question

Why do bars offer free peanuts?

Answered: 1 week ago