Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Generate a detailed class diagram starting from the following problem description: define the required classes, their attributes ( type and name ) , the signature

Generate a detailed class diagram starting from the following problem description: define the required classes, their
attributes (type and name), the signature of the methods and the relationships between different classes.
Problem description:
Share-a-Bike is replacing their rental shops with digital rental stations that keep track of bike bookings and
movement. Each rental station provides the following core functionality: It consists of an overview of return stations
(i.e., places in Leuven where you can return a bike), and also maintains a user database. Users have a name, and an
age. Bike bookings have a start time, include the name of the station at which the bike was booked, and the one at
which the user intends to return it. Depending on the chosen rental duration, the price is calculated. Prices are
adapted based on user (age) and rental duration (amount of time the user assumes they will need the bike). Every
time a user books a bike, the price for the given rental is calculated. The system maintains a record of the users who
booked a given bike; for every user, the system maintains an overview of the total amount of money spent on bike
rentals. Further, the digital rental station maintains the total volume (money, you can assume Euros) of bike rentals
sold so that Share-a-Bike gets an overview of its most profitable rental stations.
For administrative purposes, it must be possible to add new users and return stations to an existing rental station,
and to retrieve users based on their username. To set up a new rental station, it needs to be possible to import
information on all existing other stations from a database. This method returns the number of imported stations.
Another requirement is the possibility of retrieving the rental with the longest duration that was booked by a user.
Additionally, Share-a-Bike would like to be able to retrieve a list of rental stations where customers spend significant
amounts of money on their bike rentals so that they can target future expansion

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

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions

Question

6. Are my sources reliable?

Answered: 1 week ago

Question

5. Are my sources compelling?

Answered: 1 week ago