Closed

Code Project

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.

Skills: Java

See more: first class objects in java, need two question game, application named, java project classes, java score code, java data project, tennis points, code player scores java, tennis game code, java class project, java final project, save data java project, java project names, tennis data, score java, assign project number, save game scores java, game class player java, final project java, java save game score, java code game, small project code, project code admission test system asp, php project code igniter, free project code vbnet admission system university

About the Employer:
( 0 reviews ) United States

Project ID: #7119487

37 freelancers are bidding on average $21 for this job

urmate

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

$20 USD in 0 days
(116 Reviews)
5.9
wbslivera

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

$25 USD in 0 days
(136 Reviews)
5.9
gkan1234

Hi I have 5+ years experience in Java. I have completed more than 100 projects so far. Please send me a message so that we can discuss once. Thanks

$25 USD in 0 days
(131 Reviews)
5.7
vano101

It looks as easy thing, can be completed in few hours .................................................

$20 USD in 1 day
(181 Reviews)
5.6
aazc5aazc

A proposal has not yet been provided

$20 USD in 1 day
(47 Reviews)
5.1
asadrana91

hi mate this is Asad, i have a lot of experience in java programming,would surely help you out,cheers:)

$35 USD in 1 day
(25 Reviews)
4.7
bdlions

Hello boss, We are interested in your project. We have expert java developers. Please check our completed projects. Sincerely bdlions

$19 USD in 1 day
(18 Reviews)
4.4
dipakjadhav08

Hello, I have 6 years experience in java. I can do this assignment. Please message me for further discussion.

$20 USD in 0 days
(22 Reviews)
4.1
vietcompro

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.

$20 USD in 0 days
(20 Reviews)
3.8
truongmg

Hi sir, thank you for your project. This project is easy for me. I could help you to do it quickly. Please contact me via PMB. Thanks

$20 USD in 1 day
(11 Reviews)
3.7
GinjuVladLucian

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

$35 USD in 0 days
(5 Reviews)
3.0
eagleeye007

Hi there. I am Sun Certified Java Professional (scored 100% in this exam) and Oracle Certified Expert Java EE Web Component Developer (scored 96%). I have over 4.5 years of industry experience in developing application More

$12 USD in 1 day
(1 Review)
1.9
hinahanif15

Greetings, I am interested in doing this job. I am BS-CS graduate and knows Java programming as well, because of which I can do this task with ease. Have worked on Eclipse, Net beans and others. Please do give me a More

$17 USD in 1 day
(2 Reviews)
1.1
TristonJ

I have a lot of experience working with Java and Desktop applications and I feel I would be more than able to complete a project like this. You were very clear in your project description, and I would follow your direc More

$15 USD in 1 day
(1 Review)
0.0
santiagomurchio

I have more than 5 years of experience with Java and web technologies, I am the right person for this job. Thanks.

$30 USD in 3 days
(0 Reviews)
0.0
naglaa90

I am a computer science engineer with good experience in java i can finish work with minimum cost in few days

$25 USD in 1 day
(0 Reviews)
0.0
skyshayde

I am capable of performing the task quickly and cheaply. I already have a basic outline of the project.

$10 USD in 1 day
(0 Reviews)
0.0
michaeljavier

A proposal has not yet been provided

$25 USD in 1 day
(0 Reviews)
0.0
Afridikht

I am a Senior JAVA Developer. I have done so many such project in my life time. This is a very easy task and it can be done in just half day. Still if you have any issue relating to the project, then you can contac More

$10 USD in 0 days
(0 Reviews)
0.0
federicocaceres

La propuesta todavía no ha sido proveída

$25 USD in 3 days
(0 Reviews)
0.0