
Patrick B. answered 08/25/21
Math and computer tutor/teacher
class Sport
{
protected int score;
public score() { score=0;}
int GetScore(){ return(score):}
void SetScore( int x) { score=x;}
}
Renee P.
asked 08/25/21Problem Statement
Design and implement a class named "Sport" in pseudocode which uses the OOP conventions discussed in this course and includes the following:
• a data field which represents an Integer score
• a class constructor which initializes the score to 0
• an accessor for the score
• a mutator for the score
Do not include a main module in your solution. Use appropriate indentation and alignment and include an ID header.
Part 2 - Programming Code
Take the pseudo-code you designed and write the Java program code in a Word document. Submit the pseudo-code and programming code in one Word document. Use the headings provided to indicate Part 1 and Part 2 for this question.
Patrick B. answered 08/25/21
Math and computer tutor/teacher
class Sport
{
protected int score;
public score() { score=0;}
int GetScore(){ return(score):}
void SetScore( int x) { score=x;}
}
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.