Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA Code.. Please true code .. You are the owner of a fight club. There are 2 types of sportsmen in this club: boxers and

JAVA Code.. Please true code ..

You are the owner of a fight club. There are 2 types of sportsmen in this club: boxers and kickboxers. Your fighters have a degree of skill varying from 1 to 10 and this degree is a floating-point number selected randomly. Also, you keep track of their age and weight. Your club holds fights by selecting two fighters randomly. A fight can be a kick-box fight or a box fight. Your fighters match according to their age and weights. Age restrictions are defined by the rules as under 25 or 25 and above. Weight restrictions are defined by the rules as under 80 kg or 80 kg and above. Fights are won by the skill degrees and after each fight winner stays in the same skill degree, but the loser gains 20% of his/her skill added to the degree of skill. When comparing the fighters, if the fight is a kick-box fight and a boxer is joining, then the boxers skill is downgraded by 25% when taking into calculation. If the fight is a box fight and a kick-boxer is joining, then the kickboxers skill is downgraded by 15% when taking into calculation. Provide a skeleton code (classes with attributes, methods and interfaces) in java for these requirements and also provide the implementation of fundamental methods of your program.

Directions/Hints:

(1) There should be at least one abstract class and one abstract method in your solution.

(2) Define and use an interface for the execution of fights.

(3) Include constructors but ignore getters/setters that are not used in your solution.

(4) Apply the principles of object-oriented programming

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

Step: 3

blur-text-image

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 2 Lnai 9285

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Joao Gama ,Alipio Jorge ,Carlos Soares

1st Edition

3319235249, 978-3319235240

More Books

Students also viewed these Databases questions

Question

Explain the factors influencing wage and salary administration.

Answered: 1 week ago

Question

Examine various types of executive compensation plans.

Answered: 1 week ago

Question

1. What is the meaning and definition of banks ?

Answered: 1 week ago

Question

Compare the different types of employee separation actions.

Answered: 1 week ago

Question

Assess alternative dispute resolution methods.

Answered: 1 week ago

Question

Distinguish between intrinsic and extrinsic rewards.

Answered: 1 week ago