Hello I need help with a java problem,i cant seem to get it.The problem is as follows.
Consider a class RatingScore its attributes are a
attributes
a description of what is being rated ,the max rating and the user rating.
Methods
get userrating, get max rating and a write a description based on the maxrating and userrating.
THis is the first part of the problem then it goes on to say consider another class that will judge a project its attributes are
attributes
projectname,idofproject,nameofperson,thoughtscore
methods
return rating and maximum rating
I know I have to use the class RatingScore with the project class but I do not know how
here is my code so far
This is for RatingScore
public class RatingScore
{
private int UserRating;
private int maxRating;
private String description;
public void setUserRating(int newUserRating)
{
UserRating = newUserRating;
}
public void setmaxRating(int newmaxRating)
{
maxRating = newmaxRating;
}
public int getUserRating()
{
return UserRating;
}
public int getmaxRating()
{
return maxRating;
}
public void description()
{
System.out.println("the max rating for this project was" + maxRating + "the score you got was" +UserRating);
}
}
THen I need to work it into the other class and this is where I need help with connecting the ideas
public class ScienceFairProject
{
RatingScore ScienceFairProject = new RatingScore();
private RatingScore thought;
public void setthought(RatingScore newthought)
{
thought=newthought;
}
}