Question: Java program. Show steps Name Final Part 2: Open Book 1. Define a Class called UFCFighter. a. Make instance variables for Name, Weight, Wins, and

Java program. Show steps  Java program. Show steps Name Final Part 2: Open Book 1.

Name Final Part 2: Open Book 1. Define a Class called UFCFighter. a. Make instance variables for Name, Weight, Wins, and Loses(pick appropriate variable types). b. Create a static variable for TotalFights c. Create a default constructor that defaults name to "No Name yet", and al other variables to 0 d. Create a constructor that has parameters that set the value for name and weight, and sets wins and loses to 0. e. Create accessor methods for all the Variables (treat methods for static variables appropriately). f. Create a method that increments Wins and TotalFights g. Create a method that increments Loses and Totalfights. h. Create a method that returns true if 2 fighters have the same name, weight, wins, and losses. Create a static void method that compares a fighters wins to their loses and prints out whether or not they have a winning record(higher number of wins) or a losing record (higher number of losses). i. j. Create a static method that prints out all information for a fighter. k. Create a static method that makes 2 UFC fighters fight each other. The one with the higher win/loss ratio will win. This will then increment wins and total fights for winner, and increment losses and total fights for the loser

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!