Homework

Related Homework Questions
If you look at the average WS across the top ten athletes
If you look at the average WS across the top ten athletes for each year (for example, it is 2.914 in 2020), which year had the lowest average WS across the top ten? (Hint: the highest was 2009.) *… read more
Tutor
Master in Science
5,784 satisfied customers
Calculate LBJ as the average WS of the top-ten players among
Calculate LBJ as the average WS of the top-ten players among all years when "L. James" was one of the top-ten, and MJ as the average WS of the top-ten players among all years when "M. Jordan" was one … read more
Tutor
Master in Science
5,784 satisfied customers
Java. I have a little bit of code. I need this completed in
i need this completed in 1 hour Player Class Specification The Player class represents a player that will play a simple game. In this game, a player can play the number 0, 1, or 2. The Player class contains the following four fields: private String name; private int play; private int [] tally; private StringBuffer history; The Player class contains the following 2 constructors and 5 methods that you must implement: 1. Constructor with String parameter – If the argument is null, throw the IllegalArgumentException with the message "Invalid parameter", otherwise set the name field. Set play to 0, assign an int array to tally (you can decide the size of the array), and an empty StringBuffer to history. This constructor will be referred to as “the constructor” in the remainder of the text. 2. Copy Constructor – Make sure the copy is completely independent of the original with no shared fields. 3. getPlay – get method for the play field. 4. setPlay - If the argument is anything other than 0, 1, or 2 , throw the IllegalArgumentException with the message "Invalid parameter", otherwise set the play field. You are free to update other fields as you see fit in this method. 5. getHistory – returns the history of the player. The history will be each play followed by one space after the play(there will even be a space after the last play). For example, if the player plays a 2, followed by a 0, followed by a 1, the content of the history will be 2 0 1 Note: The history never contains the original 0 assigned as the default value of play using the constructor. Hint: Beware of a privacy leak. (Please do not post to piazza asking what is meant by a privacy leak. You should know this from the lectures) 6. reset – After this method is invoked on a player object, the player object should be in the same state as it would be if it was just constructed using the constructor. 7. getTally – Will return a string that represents the frequency of each play of the player. For example, the following: 0: ******** 1: ****** 2: ****** means the player has played 8 zeros (because there are 8 *), 6 ones, and 6 twos. See the sample driver for another example. PlayGame Class Specification The PlayGame class contains one static method, play, that allows 2 players to play the simple game. The rules are as follow: There are only 3 values that can be played: 0, 1, 2 In each round, each of the 2 player picks one of the three values. If both players, pick the same value, the round is a tie. A 2 beats a 1, a 1 beats a 0, and a 0 beats a 2 (this last rule is a little counter intuitive, so just to repeat, a player that picks a 0 will win over the player who picks a 2) The PlayGame class contains the following static method that you must implement: 1. play -This method will simulate 10 rounds of the game and return a string that shows the result of each round as well as the overall winner of the game (or report a tie). For each round, first set the play of player 1 then set the play of player 2. To get a value that is either 0,1,or 2, you must use the following call: random.nextInt(3) For each round, figure out who the winner is (it might be a tie) and concatenate the string you form to the string that the method will return. For example, the text for round 1 might be: Round 1 - P1: 0, P2: 1, result: P2 Wins See the Sample Driver output for more examples. Feel free to add private helper static methods to help you implement the necessary logic of who wins a round. After the 10 rounds, you need to have one additional line that reports the winner (whoever won the most game, or a tie if both have the same number of wins). For example, the text might be: P1 total: 2, P2 total: 3, Winner: P2 See the Sample Driver output for more examples. this is the requirement … read more
Expert
I need to run a unique macro with excel vba. No code yet. An
the vba will need to accomplish 3 things: 1. recalculate a worksheet 2. grab the output values 3. append those values to a data table… read more
Tom
Master's Degree
1,960 satisfied customers
I am trying to figure out a countifs and match formula.
I am trying to figure out a countifs and match formula. … read more
Erwin Garcia
Master of Science
1,232 satisfied customers
Expert
I would like you to add thease things into my code if you
Hi I would like you to add thease things into my code if you can.The default constructor should instantiate a new ArrayList object, and store a reference to this object in the Roster's players instanc… read more
KUNAL VAGHELA
325 satisfied customers
I am attempting to create a pivot table. It has multiple
I am attempting to create a pivot table. It has multiple tables. However during creating the relationship i am getting the error that says can't create a relationship between two columns because of th… read more
Tutor
Master in Science
5,784 satisfied customers
I was online last night but was unable to complete payment,
Good Day Pearl i was online last night but was unable to complete payment, I require help with drawing a pivot table with specific requirements and create a summary page from a hug amount of data, i a… read more
Tom
Master's Degree
1,960 satisfied customers
In a pivot table, can you show values also as a YTD
In a pivot table, can you show values also as a YTD percentage change based on whatever date the end user has chosen? For example, if the end user chooses 8/21/2019, can a pivot table show that YTD pe… read more
Tom
Master's Degree
1,960 satisfied customers
CAN YOU HELP WITH ASSIGNMENT PART NOT LAB? LAB IS DONE
CAN YOU HELP WITH ASSIGNMENT PART NOT LAB? LAB IS DONE CREATE DIRTY DICE GAME C++??Objectives: implement a real application with all the challenges associated with it ▪ Understand the idea of modular … read more
LogicPro
Engineer
Bachelor of Technology
18,409 satisfied customers
1. You're working in a table that has three columns and
1. You're working in a table that has three columns and five rows. Since the first row will be a header row, you want it to span all three columns. What formatting feature should you use? A. Merge cel… read more
Dr. Donna Kakonge
Doctor of Education
201 satisfied customers
Die CS 139 Algorithm DevelopmentPA4: The Game of Pig
IMPORTANT: use JGRASP for editing this java I have a file to start with and it should be done Monday. Objectives - At the conclusion of this assignment students will have demonstrated that they can: V… read more
ATLProg
Sr Software Engineer
Master's Degree
1,448 satisfied customers
Excel Workbook ProjectDescription of the Study:Mr. Johnson
Excel Workbook Project Description of the Study: Mr. Johnson is a 5th grade teacher. Up until this year, he has regularly tracked information about his students using notebooks, index cards and his ex… read more
jessmagz
Bachelor's Degree
17,562 satisfied customers
i need the files to a program you coded for a customer ear
i need the files to a program you coded for a customer earlier. here is the link to it. http://www.justanswer.com/computer-programming/5l4iz-hello-need-help-doing-project-beginner.html this is very ur… read more
LogicPro
Engineer
Bachelor of Technology
18,409 satisfied customers
The next tab contains data on a sample of 1080 salespeople
The next tab contains data on a sample of 1080 salespeople from a large electronics retail company. The dataset contains the following variables: Sales: Total sales (in \$) by each salesperson last yea… read more
Susan Athena
Research analyst, tutor
Master's Degree
3,810 satisfied customers
Data, Statistics, and Decisions in Business You have been
Data, Statistics, and Decisions in Business You have been recently employed as the director of operations of a hotel. The hotel is in a relatively large city with many other comparable hotels in its v… read more
R.R. Jha
Bachelor's Degree
6,909 satisfied customers
Select a company that produces a product that you use and with
Select a company that produces a product that you use and with which you are familiar. For the company to make decisions about developing new products and attracting new customers, it must rely on mar… read more
Joanne
Bachelor's Degree
3,109 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

## What Customers are Saying:

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here.

DianeDallas, TX

< Previous | Next >

## Meet the Experts:

Scott

5,558 satisfied customers

MIT Graduate (Math, Programming, Science, and Music)

LogicPro

Engineer

18,409 satisfied customers

Expert in Python,Java C++ C C# VB Javascript Design SQL HTML

Manal Elkhoshkhany

Tutor

4,775 satisfied customers

More than 5000 online tutoring sessions.

Linda_us

Finance, Accounts & Homework Tutor

3,138 satisfied customers

Post Graduate Diploma in Management (MBA)

Chris M.

M.S.W. Social Work

2,852 satisfied customers

Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)

F. Naz

Chartered Accountant

2,273 satisfied customers

Experience with chartered accountancy

Bizhelp

CPA

1,887 satisfied customers

Bachelors Degree and CPA with Accounting work experience

< Previous | Next >

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less