All of the work in this project is my own!  I have not left copies of my code in public folders on university computers. I have not given any of this project to others. I will not give any portion of this project to others taking this class. I realize that the penalty for turning in work that is not my own can range from an "F" in the class to dismissal from Trinity University. 

                                    Print Name  __________________________    Time Required = ______.____ Hrs.

                                    Signature   __________________________ (pledged)

                                    Print Name  __________________________    Time Required = ______.____ Hrs.

                                    Signature   __________________________ (pledged)


Athlete2-Swing Class Lab - Main Program
Individual/Team (1-2 Persons)  Assignment
25 Points


1]  Return to your Athlete.java class.

2] The private data members must include equivalents to the following C declarations:

char
    Name [26];
int
    No,
    SportNo;
float
    EquipmentValue;

3]  Include class Athlete in your main program. For purposes of this program, let us assume that the following Sport Numbers shall be used accordingly :

4] Alter your documentation to use javadocs

5] Write a main program which begins with

a] Creates and displays an Athlete object called Britton [Britton Horn, men's Baseball, #111, $42.00 worth of equipment.]

b] Creates and displays an Athlete object called Caleb [Caleb Leung, men's Football, #222, $44.00 worth of equipment.]

c] Creates and displays an Athlete object called Ben [Ben Rickards, men's Baseball, #333, $43.00 worth of equipment.]

d] Creates and displays an Athlete object called Sarah [Sarah Hicks, women's Basketball, #444, $44.00 worth of equipment.]

e] Creates and displays an Athlete object called Chris [Chris Hokamp, men's Tennis, #555, $27.00 worth of equipment.]

6] Alter your Get method to use a rectangular Swing input box which :

a) displays a commercial with your name in the Window bar

b) displays buttons Save and Cancel

c) display the prompt Name and an input box which not only contains a copy of the current contents of Name, but also provides the user with the opportunity to change that copy of Name

d) display the prompt No and an input box which not only contains a copy of the current contents of No, but also provides the user with the opportunity to change that copy of No

e) display the prompt Sport No and an input box which not only contains a copy of the current contents of SportNo, but also provides the user with the opportunity to change that copy of SportNo. Extra Credit if you make this a combo box that contains the ten choices for sports: Women's Volleyball is Sport # 1, etc.

f) display the prompt Equipment Value and an input box which not only contains a copy of the current contents of SportNo, but also provides the user with the opportunity to change that copy of SportNo

g) if the user pushes the Cancel button, discard any changes to the Athlete object - Explicity return false

h) if the user pushes the Save button, replace the contents of the Athlete object with those of the copy - Explicity return true

i) Extra Credit for color background

j) Extra Credit for color prompts

5] Add to the end of the main program something like the following:

    if (Britton.Get())
        Britton.Display() ;
    else
        System.out.println("Britton Was Not Changed!);

    if (Caleb.Get())
        Caleb.Display();
    else
        System.out.println("Caleb Was Not Changed!);

    if (Ben.Get())
        Ben.Display();
    else
        System.out.println("Ben Was Not Changed!);

    if (Chris.Get())
        Chris.Display() ;
    else
        System.out.println("Chris Was Not Changed!);

    if (Sarah.Get( ))
        Sarah.Display() ;
    else
        System.out.println("Sarah Was Not Changed!);


When Finished!

1] Print all files using New Courier Font [8 pt].

2] Mail me your solution in a message whose Subject is CSCI 1321 - Athlete 2 - Swing

3] Make sure you have at least two additional backup copies of all projects. Maybe store one on your Y drive and one on your hard drive.



4] Those Labs labeled "Individual Assignment" are to be done separately by each individual. Using a pen,  each individual is to print  his/her name at the top of this document in the space provided and sign it.  Those Labs labeled "Team Assignment" may be done as a team or individually. Using a pen,  each individual on the team is to print print his/her name at the top of this document in the space provided and sign it. Submit only one copy of team assignments!