Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please I really need help with this it's extremely important. My phone number is 203-295-1737 and I will clarify any questions about this lab. I
Please I really need help with this it's extremely important. My phone number is 203-295-1737 and I will clarify any questions about this lab. I have the previous lab that this references, and cam easily send it. Thank you very much for your time.
Pre-Lab (10 points) Make the following changes to Player.java and DoubleDrat.java. Make sure that your program compiles properly after adding these methods. The variable names in the provided code may not match the variable names in your program if you didn't follow the Lab 7 instructions explicitly. Make changes as needed so your Player.java and DoubleDrat.java file compiles properly //add 2 new data fields to Player.java private boolean drat; private int points; //update the constructor and add getters and setter for the new data fields public Player (String s) f name = s; score 0; drat false; points 0 //end constructor //update takeTurn to return a String public String takeTurn (Cup theCup) String s"" s += " " + name + "'s turn. (" + points + " points accumulated this turn. ) "; theCup.roll() int rollValue -theCup.getPointValue(); s +- theCup.toString( if (rollValue0) f s +- " !!! DRAT !! ! TURN IS OVER "; Pre-Lab (10 points) Make the following changes to Player.java and DoubleDrat.java. Make sure that your program compiles properly after adding these methods. The variable names in the provided code may not match the variable names in your program if you didn't follow the Lab 7 instructions explicitly. Make changes as needed so your Player.java and DoubleDrat.java file compiles properly //add 2 new data fields to Player.java private boolean drat; private int points; //update the constructor and add getters and setter for the new data fields public Player (String s) f name = s; score 0; drat false; points 0 //end constructor //update takeTurn to return a String public String takeTurn (Cup theCup) String s"" s += " " + name + "'s turn. (" + points + " points accumulated this turn. ) "; theCup.roll() int rollValue -theCup.getPointValue(); s +- theCup.toString( if (rollValue0) f s +- " !!! DRAT !! ! TURN IS OVER
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started