Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 thankyouimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions