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 12:50
You have just been hired as an information security engineer for a large, multi-international corporation. unfortunately, your company has suffered multiple security breaches that have threatened customers' trust in the fact that their confidential data and financial assets are private and secured. credit-card information was compromised by an attack that infiltrated the network through a vulnerable wireless connection within the organization. the other breach was an inside job where personal data was stolen because of weak access-control policies within the organization that allowed an unauthorized individual access to valuable data. your job is to develop a risk-management policy that addresses the two security breaches and how to mitigate these risks.requirementswrite a brief description of the case study. it requires two to three pages, based upon the apa style of writing. use transition words; a thesis statement; an introduction, body, and conclusion; and a reference page with at least two references. use a double-spaced, arial font, size 12.
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
1. you have a small business that is divided into 3 departments: accounting, sales, and administration. these departments have the following number of devices (computers, printers, etc.): accounting-31, sales-28, and administration-13. using a class c private network, subnet the network so that each department will have their own subnet. you must show/explain how you arrived at your conclusion and also show the following: all available device addresses for each department, the broadcast address for each department, and the network address for each department. also, determine how many "wasted" (not usable) addresses resulted from your subnetting (enumerate them).
Answers: 3
question
Computers and Technology, 23.06.2019 21:30
To move a file or folder in microsoft windows, you can click and hold down the left mouse button while moving your mouse pointer to the location you want the file or folder to be, which is also known as.
Answers: 3
question
Computers and Technology, 24.06.2019 07:50
Write a defining table and then a program that determines if you can sleep in or not. your program should get all its input from your computer’s clock. on all weekdays (monday through friday) that are not holidays, your program should output “get up! ” on all other days (weekends and holidays), your program should output “sleep in.” the three holidays that your program must check for are january 1 (new year’s day), july 4 (u.s. independence day), and december 25 (christmas). you don’t need to include other holidays in your program because most other holidays do not occur on a fixed day each year.
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
Chemistry, 28.06.2019 03:30
question
Mathematics, 28.06.2019 03:30
question
Social Studies, 28.06.2019 03:30
question
Physics, 28.06.2019 03:30
question
Mathematics, 28.06.2019 03:30