Professional Documents
Culture Documents
Gymproject
Gymproject
Submitted by
Team Number: 04
Faculty In-charge:
1 Introduction
. Overview of the problem statement
1
To simulate the functions of Gym centre. Gym management maintains the record of
gym details, gym packages, gym staff, gym members, trainers, clients and discounts for
particular type of program. The gym administrator or user can view these details and
manage them.
1 Features of Application
2 Design
.
2 Class Diagrams/Details
.
1 1. Problem Definition: To simulate the functions of Gym centre. Gym management
maintains the record of gym details, gym packages, gym staff, gym members, trainers,
clients and discounts for particular type of program. The gym administrator or user can
view these details and manage them.
4. Objects Identified:
3. Packages are offered by the gym where there are two types of packages namely
general and personal packages.
4.Gym has a gym members and staffs which have stored respective details in the Gym.
5. Client has details which are accessed by parent class Gymmember using virtual
functions.
➢ Gym
➢ Person
➢ Name
➢ Date
➢ Address
➢ Gymmember
➢ Staff
o Trainer
o Non-Trainer
➢ Client
➢ Packages
o Personal Packages
o General Packages
2. Description of classes
1) Gym
2 ) Person
Class Person is a parent class that has data members as dob for storing date of birth
of a person, pname for storing name of person,age for storing age of person and
paddress to store the address of person.
2) Name
Name class is used to store names of the class person which has two data
members firstname and lastname. It has member function putname() is used
to display the name of a person.
3) Date
Class Date is used to store date of birth of person , start and end date of gym
members. It has member functions putDateofbirth() to display date of birth of
person ,putStartdate() to display the start date of person, putEnddate() to
display the end date of person.
4) Address
Class Address is used to store the address of a person. It has data members as
housenumber ,area name,city,state and pincode as address fields and
putaddress() is a member function to display the address of a person.
5) Gymmember
6) Staff
Class Staff is derived from class Person. It has data members phonenumber
which is used to store the mobile number of person, salary to store the salary
of staff and designation of gym staff either trainer or non-trainer.
putStaffdetails() is used to display the staff details.
7) Trainer
Class Trainer is derived from class Staff. It has two data members namely
clients and trainertype .client data member is used to assign the client to the
trainer and trainertype describes whether the trainer is personal or general.
9)Non-Trainer
Class Non-Trainer is derived from class Staff.It has two member functions namely
getdetails() and putdetails().getdetails() member function is used to store the details
of non-training staff and putdetails() function is used to display the details of non-
training staff.
10)Client
Class Client is derived from class Gymmember. It has data members namely personal
trainer, height and weight. data member personaltrainer is used to assign trainer to
client, height and weight is used to store the height and weight of client respectively .
putClient() function is used to display the details of client.
11)Packages
12)Personal Packages
Class Personal Packages is derived from abstract class Packages. It has data members
trainerfees, personaltriner, pclient .trainerfees is used to store the fees to be paid to
the trainer, personaltrainer is used to store the personal trainers to the gym, pclient is
used to assign the clients who have availed the personal packages. Member function
putPackages() is used to display the package details.
13)General l Packages
Class General Packages is derived from class Packages .It has data members namely
generaltrainer, gm, putPackages . generaltrainer is used to assign trainer who trains
gym members, gm is used to store gym members who have availed general packages.
Member function putPackages() is used to display the package details.
//Class definition’s
class Gym;
int main ()
{
Gym g ;
//function definition
Code_File.zip
Object creation:
Every time an object of Gym class is created, array for gym members and staff is
created which stores the details of gym members and staff. There are some functions
namely putGymdetails(), putGymmembers(), putGymstaff() and putPackages() to
print the respective details.
.
3. Unit Test Plan
3 Display exception
.
3
4 Implementation/snapshots
4.1 Displaying gym details.