Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following UML Class diagram of Car Rental System, briefly explain the class diagram in your own words. Also, write the following OCL expression:

Consider the following UML Class diagram of Car Rental System, briefly explain the class diagram in your own words. Also, write the following OCL expression:

  1. Write an invariant to restrict BlackListed people from renting cars. Also, write an OCL expression to initializes premium attribute of Customers class with false value.
  2. For Customer class write OCL expression which describes that premium members get a 30% discount while nonpremium members get 15% if they have at least rented high category cars six times while the rest of the customers get no discount at all.
  3. Write OCL expression for query operation that returns true if the car on which the operation is executed is the most popular in the rental system.
  4. Write OCL expression for an operation which describes the business logic behind the creation of a new rental (customer) in the car rental system.

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_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

Database Horse Betting The Road To Absolute Horse Racing 2

Authors: NAKAGAWA,YUKIO

1st Edition

B0CFZN219G, 979-8856410593

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago