subject

Each student will be described by three pieces of data: his/her name, his/her score on test #1, and his/her score on test #2. There will be one constructor, which will have one argument (parameter)-the name of the student.
There will be three methods: getName, which will return the student's name; inputGrades, which will prompt for and read in the student's test grades; and getAverage, which will compute and return the student's average.

//
// Grades. java
//
// Use Student class to get test grades for two students
// and compute averages
// Name:
// Date:
//
//
public class Grades
{
public static void main(String[] args)
{
System. out. println("Welcome to Mrs. Van Slyke’s APCSA class.");

Student student1 = new Student("Tonia");
//create student2, "Theo"

//input grades for Tonia
//print average for Tonia

System. out. println();

//input grades for Theo
//print average for Theo

}
}

//
// Student. java
//
// Define a student class that stores name, score on test 1, and
// score on test 2. Methods prompt for and read in grades,
// compute the test average, and returns a string containing student’s info.
//
// Name:
// Date:
//
import java. util. Scanner;

public class Student
{
//declare instance data

//
//constructor
//
public Student(String studentName)
{
//add body of constructor

}

//
//inputGrades: prompt for and read in student's grades for test1 and test2.
//Use name in prompts, e. g. "Please enter Rebecca's score for test1 in APCSA".
//
public void inputGrades()
{
//add body of inputGrades

}

//
//getAverage: compute and return the student's test average
//

//add header for getAverage

{
//add body of getAverage

}

//
//getName: get the student's name
//

//add header for getName

{
//add body of getName

}

//
//toString: set up toString to return
//name:, test1 score:, test2 score:
//

//add header for toString

{
//add body of toString

}

}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
Acase study allows a more detailed look at the life of a single subject than any other study.
Answers: 3
question
Computers and Technology, 22.06.2019 20:00
Which location-sharing service offers items for users as a gaming component and also allows them to collectively link their check-ins to publish a trip? a. whrrl b. buzzd c. foursquare (this option is wrong i already tried) d. gowalla for plato
Answers: 2
question
Computers and Technology, 23.06.2019 15:30
The song about casey jones a railroad engineer who gives his life on the job would most likely gall under the folk song category of? a-work song b-nonsense song c-religious song d-ballad
Answers: 1
question
Computers and Technology, 24.06.2019 08:00
Java the manager of a football stadium wants you to write a program that calculates the total ticket sales after each game
Answers: 1
You know the right answer?
Each student will be described by three pieces of data: his/her name, his/her score on test #1, and...
Questions
question
Mathematics, 23.03.2021 23:20
question
Mathematics, 23.03.2021 23:20
question
Geography, 23.03.2021 23:20
question
History, 23.03.2021 23:30
question
Mathematics, 23.03.2021 23:30
question
Mathematics, 23.03.2021 23:30
question
Arts, 23.03.2021 23:30
Questions on the website: 13722362