HI everyone this Text file is the Java Score file.If you can make the file from this text i would appreciate it.Also their is 2 -3 other files that listed below for download.I just wanted to let everyone know that i'm looking for someone wouldn't mind creating this complete project for me.I needed to see the complete example so i can understand.It is hard to understand things when you have ADHD disablity. I Just want somoene to create the project so i can learn from the project you created.I can print and type everything out so i i can figure it out on my own.A classmate of mine shared an example for another assignment and it helped me out.I'm asking just for one example of the whole project so i can learn from it.I ain't learning by looking at a a few files.All i ask is your time and that is all.Once i finish this project you don't have to help me anymore.This is my last week for class and i need it done before Sunday at midnight.If anyone needs my email i can message you it privately so you can email the files back to me.I appreciate.
ps.If no one wants to help then i will look for a tutor.I don't mind paying if Plan a or b doesn't fall through.Plan C is a tutor which i don't mind.I don't get jealous from people.We should help eachother out cause we want to learn from the problem.
// DO NOT CHANGE ANY CODE IN THIS FILE EXCEPT FOR THE PACKAGE NAME
/*
* Class Name: Score
* Programmer: John Carter
* Date: 4/15/17
* Description: This class can store a persons name and their score. It can be
* be used to keep track of a gamming score or credit score
*/
// MODIFY THE PACKAGE NAME TO MATCH YOUR PROJECT NAME!!!!!
package final_start_file;
public class Score implements Comparable<Score>{
//Global variables
public String myName;
public int myScore;
//************************************************** ****
// Constructors
//************************************************** ****
// If no values are passed, set both global vars to blank and 0
public Score(){
super();
myName = "";
myScore = 0;
}
// If only a name is passed, set the name and set the score to 0
public Score(String n){
super();
myName = n;
myScore = 0;
}
// If both values are passed, set both
public Score(String n, int s){
super();
myName = n;
myScore = s;
}
// If both values are passed, but the score is a string, covert the score
public Score(String n, String s){
super();
myName = n;
myScore = Integer.parseInt(s);
}
//************************************************** ****
// SET METHODS
//************************************************** ****
// Set just the name
public void setName(String n) {
myName = n;
}
// Set just the score
public void setScore(int s) {
myScore = s;
}
// Set just the score once it has been converted to a number
public void setScore(String s) {
myScore = Integer.parseInt(s);
}
//************************************************** ****
// GET METHODS
//************************************************** ****
// Set just the name
public String getName() {
return myName;
}
// Set just the score
public int getScore() {
return myScore;
}
//************************************************** ****
// OUTPUT METHODS
//************************************************** ****
// This method will display a header for the information in this class
public String header(){
return " Name\tScore\n-------------------------------\n";
}
// This method build a string that will display the name and score
// seperated by a comma. Can be used to store the data into a file format
public String store(){
return myName + "," + myScore;
}
// This method build a string that will display the name and score
// seperated by a tab
public String display(){
return " " + myName + "\t" + myScore + "\n";
}
// Override the compareTo method to help the sort
@Override
public int compareTo(Score s){
int compareScore = ((Score) s).getScore();
// Descending order
return compareScore - this.myScore;
}
} // End of class