I need a solution to this question:
Create a class named TennisGame that holds data about a single tennis game. The class has six fields: the names of the two players, the integer final scores for the players, and the String values of the final scores. Include a get method for each of the six fields. Also include a set method that accepts two playersâ�� names, and another set method that accepts the two integer final score values. The integer final score for a player is the number of points the player won during the game; this value should be in the range of 0 through 4. If either of the set method parameters for a score is not in the range of 0 through 4, assign 0 to both scores and assign â��errorâ�� to the String scores. If both playersâ�� score parameters are 4, assign 0 to both scores and â��errorâ�� to the String scores. The String score values are set by the method that sets the integer score values. The String final score for each player contains the traditional names for points in tennis: love, 15, 30, 40, or game, respectively, for the values 0 through 4. Create a subclass named DoublesTennisGame that includes two additional fields for the names of the first two playersâ�� partners. Include get methods for the names. Override the parent class setNames() method to accept the names of all four players. Write an application named DemoTennisGames that instantiates several objects of each of these classes. Demonstrate that all the methods assign correct values. Save the files as [url removed, login to view], [url removed, login to view], and DemoTennisGames.java.
37 freelancers are bidding on average $21 for this job
HI Contact me for an efficient, perfect, well documented development of your project according to 100% accuracy and requirements, with dedicated support. Thanks Farah Saif
Hello, I am Oracle certified professional java programmer and have have [url removed, login to view], I am ready to help you now, thanks and let me know Note : It is 11PM here, going to sleep, if you can please wait 7~8 hours, thanks
Hi there, I've already read and understood the project description. Would you please initiate a chat for further discussion? So really hope to have chance to work with you, thanks for your consideration! Regards.
Hello, I've been working wit Java for three years now and i think that i could help you with your project! Let's get started. PM for more details. Regards, Vlad Ginju