- #1
JamesBwoii
- 74
- 0
Hi, I need to make a UML class diagram for a hotel billing system then implement it in Java. I'm quite new to UML so was just wondering a few things.
The scenario is:
I need to perform an Object Oriented design and represent using a class diagram. I need to identify all objects in the system and their methods and attributes.
I need to use polymorphism to calculate the bill.
What are the classes that I need? At the moment I can think of;
Thanks for the help.
The scenario is:
- 3 different types of customer - corporate, group and individual
- Corporate customers are local companies employees with a strong customer relationship.
- Group customers are generally families who share a single room.
- Individual customers use a single room.
- To automate billing the hotel must be able to store customer’s name, address, telephone numbers, the dates and number of days stayed in the hotel.
- System must automatically generate a bill for each customer.
- Flat rate for every customer of £100 per person per night.
- Corporate customers are given a 20% discount, and 50% discount on weekends.
- Group bookings are an extra 10% for every person sharing the room.
- Individual customers are charged standard rate.
I need to perform an Object Oriented design and represent using a class diagram. I need to identify all objects in the system and their methods and attributes.
I need to use polymorphism to calculate the bill.
What are the classes that I need? At the moment I can think of;
- Hotel
- Customer with corporate, group and individual as subclasses.
- Rooms where hotel has a finite number of rooms.
Thanks for the help.