Define a class called UFC fighter.
a. Make instance variable foe Name, Weight, Wins, Losses
b. Create a static variable for TotalFights
c. Create a default constructor that defaults name to “NoName yet” and all other variables to 0.
d. Create a constructor that has parameters that set the value for name and weight, and sets wins and losses to -.
e. Create accessor methods for all the variables.
f. Create a method that increments Wins and TotalFights
g. Create a method that increments losses and TotalFights.
h. Create a method that compares a fighter’s wins to their losses and tells whether or not they have a winning record.
2. 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?
2
1
1
Enter the Numbers
2, Which is 50% of the sum
1, Which is 25% of the sum
1, Which is 25% of the sum
Are you looking for a similar paper or any other quality academic essay? Then look no further. Our research paper writing service is what you require. Our team of experienced writers is on standby to deliver to you an original paper as per your specified instructions with zero plagiarism guaranteed. This is the perfect way you can prepare your own unique academic paper and score the grades you deserve.
Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.
[order_calculator]