Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!