Question: Java problem thankyou public class FizzbinPlayer { } Use the following file: FizzbinPlayerTester.java public class FizzbinPlayerTester { public static void main(String[] args) { FizzbinPlayer player

Java problem thankyouJava problem thankyou public class FizzbinPlayer { } Use the following file:

public class FizzbinPlayer { }

Use the following file:

FizzbinPlayerTester.java

public class FizzbinPlayerTester { public static void main(String[] args) { FizzbinPlayer player = new FizzbinPlayer("Carlos", 21); System.out.println("Player: " + player.getName()); System.out.println("Expected: Carlos" ); System.out.println("has adjustment: " + player.getAdjustment()); System.out.println("Expected: 21" ); player.setAdjustment(15); System.out.println("now has adjustment: " + player.getAdjustment()); System.out.println("Expected: 15" ); } }

Fizzbin is a game from Alpha Centari. It is a game of skill not luck. To make the game competitive among players of different skill levels, a score adjustment system has been devised. Each player has an adjustment value ranging from 0 to 40. The better the player, the lower the adjustment value. after a round of play, every player's adjustment value is added to his / her score. The player with the highest final score is the winner. For this assignment, you will complete the FizzbinPlayer class. I supply the tester. Your class will not have a main method. The FizzbinPlayer class has: a constructor that takes a String name and an int adjustment value in that order. o That means the class will need instance variables to remember the name and adjustment value. Make them private a method getName) which returns the name of the player . a method getAdjustment ) that returns the adjustment value a method setAdjustment) which will assign a new adjustment value to this player o The method will take a the new value as a adjustment value (stuff in parentheses are parameters) Provide Javadoc for the constructor and all methods. The Javadoc for the class is given to you

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!