• Home
  • Blog
  • Object Oriented Project with Java

Object Oriented Project with Java

0 comments

GMS is a gymnasium management system that helps any gym receptionist or help desk staff to manage the gym members’ accounts by:

1) registering members who can be singles or families

2) applying special discounts to some members

3) Registering members in physical activity classes and services

4) Displaying invoices and related search results.

The GMS has two types of members: single and family. The member class is a super-class abstract that has the common attributes and methods in all types of members.

The two sub-classes SingleMember and FamilyMember each extends the superclass and define other more specific attributes and methods. The gym system also offers many Services (abstract class) that can be divided into two subclasses Class (e.g., cardio, and cycling) and Amenity (e.g., swimming-pool, and steam-room).

After adding the members and services to the system. The help desk staff would be able to register any member in any services. The help desk staff are also able to apply a special discount on some memberships if the member is registered for 10 years or more. The gym Also offers the VIP costumers additional discount in some of classes only.

Keeping the above-mentioned problem statement, explain the following 3 steps in detail

1. Draw a Class relationship diagram using UML symbols [1 mark for creating the class relationship diagram using UML notations].

2. Give complete java programming implementation for classes that were found in design phase. You must mention their most probable instance variables and methods. [4 marks]

You should keep in mind that there are many ways to solve this problem statement. Be creative and provide detailed solution to the problem.

Output:

Run:

————— Welcome to Gym Management System —————

1- Add a single member

2- Add a family member

3- Add a class

4- Add an amenity

5- Register a member

6- Print sort classes

7- Print sort amenities

——————————————–

Please select an option: 1

***************Adding Single Members**************

How many single members do you want to add? 1

<< Single member #1 >>

Please enter the following data:

Full Name (Separated by an underscore): Mohammad_Ali

Gender: M

Date of Birth (dd/mm/yyyy): 20/11/1990

Date of Regestration (dd/mm/yyyy): 5/3/2021

Address (Alsamer/AlKhaldiah…etc): ALRawdah

Phone(+9665xxxxxxxx): +966555506879

Membership Type (VIP/Regular): VIP

sMemberID is 1001

——————————————————–

Member arrayList size is 1

——————————————————–

*******All Single Members were successfully added*******

———————————————————

Do you still want to continue? (y/n) y

————— Welcome to Gym Management System —————

1- Add a single member

2- Add a family member

3- Add a class

4- Add an amenity

5- Register a member

6- Print sort classes

7- Print sort amenities

——————————————–

Please select an option:

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}