Create an Array of integers called Numbers. Allow the user to pick the size of the array and enter values for each index. Define a class called UFC fighter.
Create an Array of integers called Numbers. Allow the user to pick the size of the array and enter values for each index.
Define a class called UFC fighter.
Make instance variable foe Name, Weight, Wins, Losses
Create a static variable for TotalFights
Create a default constructor that defaults name to “NoName yet” and all other variables to 0.
Create a constructor that has parameters that set the value for name and weight, and sets wins and losses to -.
Create accessor methods for all the variables.
Create a method that increments Wins and TotalFights
Create a method that increments losses and TotalFights.
Create a method that compares a fighter’s wins to their losses and tells whether or not they have a winning record.
Create an Array of integers called Numbers. Allow the user to pick the size of the array and enter values for each index. After the array is filled, return the sum of all the values. Then reprint the numbers and state what percentage of the sum the value is.
How many numbers will you enter?


