7COM1025 Project: University Sport Center Application
VerifiedAdded on 2022/08/12
|11
|2263
|28
Project
AI Summary
This Java project implements a Sport Center Application for managing group exercise classes at a university. The application allows students to book classes, including Yoga, Zumba, and others, on Saturdays and Sundays, with three class times per day. Students can book multiple classes, change bookings, and provide reviews with numerical ratings. The application generates reports on student numbers, reviews, and income, including monthly summaries and identification of high-income classes. The project comprises multiple classes: a main class, sports class, change class, rating class, and monthly report class, along with JUnit tests for each class, and refactoring process. The system design partially follows the DAO pattern, though without database integration, and emphasizes class association. The project also highlights design patterns, the principles of object-oriented programming, JUnit testing, and refactoring techniques to ensure code reusability, reliability, and maintainability. The project also includes JUnit tests to ensure the functionality of the system.

Running Head: Sport Center Application of University
Sports Center Application
Name of the Student
Name of the University
Author Name
Sports Center Application
Name of the Student
Name of the University
Author Name
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

1Sport Center Application
Class Diagram
Class Diagram

2Sport Center Application
Project Overview
The Program is an application of the Sport center of University. In this application,
students book their classes for different categories of sport. There are presently five types of
sports category Yoga, Zumba, Aquacise, Box Fit, Body Blitz, etc. The classes open for only two
days Saturday and Sunday. These two days students booked their classes three times a day
Morning, Afternoon and Evening. Classes are divided into different times in the schedule. Prices
are different for different sports category but the price is equal for the same time as the class.
Students booked many classes at a time and changed the time and category information at any
time. Along with students give a review of the attended class after they attend any class. The
review consists of some words that students write behalf of their class experience and also rated
with the numerical the divided into some categories 1 to 5(1: Very dissatisfied, 2: Dissatisfied, 3:
Ok, 4: Satisfied, 5: Very Satisfied).
The application also prints a report of no of students per group and the review of the students. It
also generates the highest income of any group and counts the same excise class. Al last finally
deliver the data covering at least 4 different types of excise groups of 10 students with 20
reviews.
Project Description
This project presents six classes that are rating, champion Class, change Class, monthly
Report, and sports Class and main class. In the sport, class declared a constructor and two
methods such as sport class, Saturday and Sunday. The constructor able to choose the class
timings and the category of exercise. If anyone chooses Saturday then the Saturday () method is
called and choose Sunday then the Sunday () method call
On the Saturday or Sunday method, there are include the timetable of the classes. Classes
are available in three time morning, afternoon and evening. After choosing the time and the
exercise type had been chosen the class is booked properly and the booked message is displayed.
The changing class has present the same functionality of sport class but this class calls anyone to
choose the option change class. Get the review with rating in the project create a rating class, in
this class declared a constructor and method. This option select by anyone after attending the
Project Overview
The Program is an application of the Sport center of University. In this application,
students book their classes for different categories of sport. There are presently five types of
sports category Yoga, Zumba, Aquacise, Box Fit, Body Blitz, etc. The classes open for only two
days Saturday and Sunday. These two days students booked their classes three times a day
Morning, Afternoon and Evening. Classes are divided into different times in the schedule. Prices
are different for different sports category but the price is equal for the same time as the class.
Students booked many classes at a time and changed the time and category information at any
time. Along with students give a review of the attended class after they attend any class. The
review consists of some words that students write behalf of their class experience and also rated
with the numerical the divided into some categories 1 to 5(1: Very dissatisfied, 2: Dissatisfied, 3:
Ok, 4: Satisfied, 5: Very Satisfied).
The application also prints a report of no of students per group and the review of the students. It
also generates the highest income of any group and counts the same excise class. Al last finally
deliver the data covering at least 4 different types of excise groups of 10 students with 20
reviews.
Project Description
This project presents six classes that are rating, champion Class, change Class, monthly
Report, and sports Class and main class. In the sport, class declared a constructor and two
methods such as sport class, Saturday and Sunday. The constructor able to choose the class
timings and the category of exercise. If anyone chooses Saturday then the Saturday () method is
called and choose Sunday then the Sunday () method call
On the Saturday or Sunday method, there are include the timetable of the classes. Classes
are available in three time morning, afternoon and evening. After choosing the time and the
exercise type had been chosen the class is booked properly and the booked message is displayed.
The changing class has present the same functionality of sport class but this class calls anyone to
choose the option change class. Get the review with rating in the project create a rating class, in
this class declared a constructor and method. This option select by anyone after attending the
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide

3Sport Center Application
class and give the review. The review is given through some valuable words from the students
and ratings give through in numerical value. Rating would be positive and negative. After given
the review it will display properly. The program shows the monthly report of four weekends with
the number of students along with their reviews also displays the average review of 10 students
review with ratings that is present in an external text file. Reviews display based on a monthly
basis. Anyone chooses a month according to its numerical value the review display for this
month. There is present one more function for the show which group class gains the most income
in a particular month.
Assumptions
According to the upper discussion of the overview and description of the functionality of
the program moreover appropriate but it will be more functionalized. In the program, there is no
use of any database. So the date cannot store any ware it would possibly store the data in array
but it would be work at the time of execution of the program. When the program is terminated
the will be lost it cannot be retrieved in the future but if use database data can fetch any time in
the future.
Another thing that it is a console program run in the Ide console. If the program made
with web technology it is very helpful. In the web-based program, it includes the webserver.
Web server is one of the biggest storage options so maximum data have to store through the
program. Another way to build this is program is through a GUI based program. GUI is one of
the best processes to develop a project. This technology also presents a separate view based on
the MVC process. The program in this project did not use any framework like Rest API (spring).
The framework helps in functionary development in programing code such as create an object,
connect database, fetch data, etc. So programmers can do the time consumed at the time of
developing programming code.
The design structure of the program
This program has five functional classes, the main class, and an interface. In the main
class, a class constructor and public satin void main () method are present. In the first run, the
main method will show the options to choose for a booking exercise class, change exercise class,
Give the review about attend class and many more. If anybody wants to book a class chooses a
booking option then the sport class Constructor is called. In this class constructor, the time table
class and give the review. The review is given through some valuable words from the students
and ratings give through in numerical value. Rating would be positive and negative. After given
the review it will display properly. The program shows the monthly report of four weekends with
the number of students along with their reviews also displays the average review of 10 students
review with ratings that is present in an external text file. Reviews display based on a monthly
basis. Anyone chooses a month according to its numerical value the review display for this
month. There is present one more function for the show which group class gains the most income
in a particular month.
Assumptions
According to the upper discussion of the overview and description of the functionality of
the program moreover appropriate but it will be more functionalized. In the program, there is no
use of any database. So the date cannot store any ware it would possibly store the data in array
but it would be work at the time of execution of the program. When the program is terminated
the will be lost it cannot be retrieved in the future but if use database data can fetch any time in
the future.
Another thing that it is a console program run in the Ide console. If the program made
with web technology it is very helpful. In the web-based program, it includes the webserver.
Web server is one of the biggest storage options so maximum data have to store through the
program. Another way to build this is program is through a GUI based program. GUI is one of
the best processes to develop a project. This technology also presents a separate view based on
the MVC process. The program in this project did not use any framework like Rest API (spring).
The framework helps in functionary development in programing code such as create an object,
connect database, fetch data, etc. So programmers can do the time consumed at the time of
developing programming code.
The design structure of the program
This program has five functional classes, the main class, and an interface. In the main
class, a class constructor and public satin void main () method are present. In the first run, the
main method will show the options to choose for a booking exercise class, change exercise class,
Give the review about attend class and many more. If anybody wants to book a class chooses a
booking option then the sport class Constructor is called. In this class constructor, the time table
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

4Sport Center Application
and the type had been chosen. Class timing is available for three-time morning, afternoon and
evening. After given the value, a receipt will be displayed with the class time, exercise name, and
the fees of the class and “Booked” status is displayed. Change booking option for change your
booking this option call a constructor of changeClass class. It functionally behaves as same as
previous, anyone can change the class timings and type of class. After the change, the value
changed status print with the change receipt. Attend class option select for given review after
attending the class, here the students write some words about their class experience and give
rating option with numerical. The review print in the console. There is also an option known for
the monthly class report. This report is printed a specific structure that is the no of students every
4 weekends along with their average rating and review based on the selective month. This class
also shows the average review of the 10 students. If you know which gain high income is also
possible through this application. The last option is known for the champion class based on a
monthly basis. After choose a month it will show the class high income and the total income
Design pattern and principle
The design pattern is one of the best ways to develop a programming code. In the real-
world many design patterns are exited, Such as DAO, DAO factory and many more. DAO
pattern is a mostly used design pattern that the developer preferred. DAO full form is Data
Access object. This pattern based on three-part that consist of Model View Controller MVC. In
DAO pattern data access through the object only. This pattern database connectivity code totally
separate from the function code. The programing code divides into two parts in this design
pattern class and interface. The class mainly has the property of the class object and the
execution method is present in the interface. There are also present an implementation class that
represents the total functionality of the project. The interface is extended by this class so the
method is overridden in this class. Database connectivity, calling method done by this class. The
main advantage of this design pattern is the codes separate for a particular use if any changes
required for any part it recognizes shortly. Another advantage the code is reused for any other
class create.
This project partly follows the DAO pattern but there is no use of any database. So, the
Normal class and interface design patterns are used in the project. The interface implemented in
two classes sports Class and Change class. There is another class is directly associated with the
main class. The interface has two abstract methods that are overriding in a two-class sport class
and the type had been chosen. Class timing is available for three-time morning, afternoon and
evening. After given the value, a receipt will be displayed with the class time, exercise name, and
the fees of the class and “Booked” status is displayed. Change booking option for change your
booking this option call a constructor of changeClass class. It functionally behaves as same as
previous, anyone can change the class timings and type of class. After the change, the value
changed status print with the change receipt. Attend class option select for given review after
attending the class, here the students write some words about their class experience and give
rating option with numerical. The review print in the console. There is also an option known for
the monthly class report. This report is printed a specific structure that is the no of students every
4 weekends along with their average rating and review based on the selective month. This class
also shows the average review of the 10 students. If you know which gain high income is also
possible through this application. The last option is known for the champion class based on a
monthly basis. After choose a month it will show the class high income and the total income
Design pattern and principle
The design pattern is one of the best ways to develop a programming code. In the real-
world many design patterns are exited, Such as DAO, DAO factory and many more. DAO
pattern is a mostly used design pattern that the developer preferred. DAO full form is Data
Access object. This pattern based on three-part that consist of Model View Controller MVC. In
DAO pattern data access through the object only. This pattern database connectivity code totally
separate from the function code. The programing code divides into two parts in this design
pattern class and interface. The class mainly has the property of the class object and the
execution method is present in the interface. There are also present an implementation class that
represents the total functionality of the project. The interface is extended by this class so the
method is overridden in this class. Database connectivity, calling method done by this class. The
main advantage of this design pattern is the codes separate for a particular use if any changes
required for any part it recognizes shortly. Another advantage the code is reused for any other
class create.
This project partly follows the DAO pattern but there is no use of any database. So, the
Normal class and interface design patterns are used in the project. The interface implemented in
two classes sports Class and Change class. There is another class is directly associated with the
main class. The interface has two abstract methods that are overriding in a two-class sport class

5Sport Center Application
and change class. These two methods have the main functionality of the project. The project
build-up with the direct association process of the class diagram. It is the fourth principle of
making an object-oriented project. It is one of the easiest and useful principles of an object-
oriented system. The main advantage of this principle pattern is the method call form the main
class in the project because of the class directly associate with the main class. The class objects
create the memory in the main method for these creates at the first execution of the program.
Although this project follows the design pattern that is upper discussed so the code is reusability
for any class in the model. If any extra class is created then the methods form interface is
overridden in that class. The code is fully reused for this developer have consumed his/her time.
The reusability of code is a good principle for any design pattern. If code can be reused it
helpless than the labor of and project done in the deadline. According to our project, it is not
fully developed with the design pattern. Along with that, it does not follow the upper discussion
properly.
JUnit Test
Junit is the widely used testing framework for Java programs. It is an open-source testing
framework. Two famous developers Erich Gamma and Kent Beak develop it initially. This
testing framework mainly used for Unit Testing of a small chunk of code. The name Junit
implies an instance of xUnit architecture. The developer must follow and write test methodology
and execute unit tests first before any code. Once the code has done properly, the developer
should execute all tests. The test always re-execute all test when any code make the change for
sure nothing is broken. There is another way to describe test protection is the test fixture. It fixed
and change class. These two methods have the main functionality of the project. The project
build-up with the direct association process of the class diagram. It is the fourth principle of
making an object-oriented project. It is one of the easiest and useful principles of an object-
oriented system. The main advantage of this principle pattern is the method call form the main
class in the project because of the class directly associate with the main class. The class objects
create the memory in the main method for these creates at the first execution of the program.
Although this project follows the design pattern that is upper discussed so the code is reusability
for any class in the model. If any extra class is created then the methods form interface is
overridden in that class. The code is fully reused for this developer have consumed his/her time.
The reusability of code is a good principle for any design pattern. If code can be reused it
helpless than the labor of and project done in the deadline. According to our project, it is not
fully developed with the design pattern. Along with that, it does not follow the upper discussion
properly.
JUnit Test
Junit is the widely used testing framework for Java programs. It is an open-source testing
framework. Two famous developers Erich Gamma and Kent Beak develop it initially. This
testing framework mainly used for Unit Testing of a small chunk of code. The name Junit
implies an instance of xUnit architecture. The developer must follow and write test methodology
and execute unit tests first before any code. Once the code has done properly, the developer
should execute all tests. The test always re-execute all test when any code make the change for
sure nothing is broken. There is another way to describe test protection is the test fixture. It fixed
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide

6Sport Center Application
the sate of an object which is used for running the test baseline. A major part of the testis unit
test for any programming language. Junit is used for java program development. The “unit” word
consider the object-oriented. Basically, it is a natural abstraction of a java object-oriented system
that a java class or object instantiated from. Junit test needs for finds bugs early in the cod, it
makes our code reliable. It is very useful for developers to work in a test-driven environment.
The process of unit testing is a developer do forcefully. Because defect design code affects the
developed system. Successful coding builds up the confidence of a developer.
This project uses the Junit test to test the follow of the program. There is five test class to
test the code. Every class has two test methods. The classes are sport test class, rating test class,
monthly report test class, and change class test class and champion class test class. ALL test
class check the input of the program if it matched test true another test is false. It would be
possible through the assertequles method that is called in every test method. This method has two
parameters those accept the expected or actual value if both methods are the same then test
execute true.
Refactoring
Refactoring is the process of step by step development process. It is one of the most self-
evident processes in software development. Properly use refactoring to perform very difficult. In
most cases refactoring strictly used from an approximation of the process. It played a major role
in the decade’s software code in the maintenance. Many developers have not a clear
understanding of the refactoring process. Many of them truly lack this important skill. The reality
of software development we can use our codebase is prepared for refactoring. The way of
refactoring set from start to finish, to describe your code of this process of simplicity.
In our project refactoring use in way of simple coding. Here the main method directly
associates with other classes. If extra class cerate, it is simply called by the main method of the
main class. Every class has a constructor it would be called in the main method. Memory
creation of every class is done in the main method so initially, all memory is initialized for the
first time of the execution of the project. Another thing is all the method dealers in the proper
way. All the method is structure is proper.
the sate of an object which is used for running the test baseline. A major part of the testis unit
test for any programming language. Junit is used for java program development. The “unit” word
consider the object-oriented. Basically, it is a natural abstraction of a java object-oriented system
that a java class or object instantiated from. Junit test needs for finds bugs early in the cod, it
makes our code reliable. It is very useful for developers to work in a test-driven environment.
The process of unit testing is a developer do forcefully. Because defect design code affects the
developed system. Successful coding builds up the confidence of a developer.
This project uses the Junit test to test the follow of the program. There is five test class to
test the code. Every class has two test methods. The classes are sport test class, rating test class,
monthly report test class, and change class test class and champion class test class. ALL test
class check the input of the program if it matched test true another test is false. It would be
possible through the assertequles method that is called in every test method. This method has two
parameters those accept the expected or actual value if both methods are the same then test
execute true.
Refactoring
Refactoring is the process of step by step development process. It is one of the most self-
evident processes in software development. Properly use refactoring to perform very difficult. In
most cases refactoring strictly used from an approximation of the process. It played a major role
in the decade’s software code in the maintenance. Many developers have not a clear
understanding of the refactoring process. Many of them truly lack this important skill. The reality
of software development we can use our codebase is prepared for refactoring. The way of
refactoring set from start to finish, to describe your code of this process of simplicity.
In our project refactoring use in way of simple coding. Here the main method directly
associates with other classes. If extra class cerate, it is simply called by the main method of the
main class. Every class has a constructor it would be called in the main method. Memory
creation of every class is done in the main method so initially, all memory is initialized for the
first time of the execution of the project. Another thing is all the method dealers in the proper
way. All the method is structure is proper.
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

7Sport Center Application
Commit Massages of Version Control
Initial Commit
1st Commit
Commit Massages of Version Control
Initial Commit
1st Commit

8Sport Center Application
2nd Commit
3rd Commit
2nd Commit
3rd Commit
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide

9Sport Center Application
4th Commit
5th Commit
4th Commit
5th Commit
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

10Sport Center Application
Final Repository
Final Repository
1 out of 11
Your All-in-One AI-Powered Toolkit for Academic Success.
+13062052269
info@desklib.com
Available 24*7 on WhatsApp / Email
Unlock your academic potential
Copyright © 2020–2026 A2Z Services. All Rights Reserved. Developed and managed by ZUCOL.

