Answered step by step
Verified Expert Solution
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:
|
- 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.
- 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.
- 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.
- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started