Create a NetBeans project named Lab4_Yourld. Create a class named Student stored in a file named Student.java and provide a tester class named Lab4_Yourld.java. For the purpose of this exercise, a student has a name, number of quizzes taken by a student and a total quiz score. Define appropriate instance variables to hold student information. Provide the following as the public interface of class Student: • A constructor that receives a string value to initialize a student's name. It initializes other instance variables to their default values. getName() method: returns the student's name • setName(String studentName) method that receives a string value and assign it to the student's name • addQuiz(double score) method that adds the received quiz score to the total score and increments the number of quizzes taken. getTotalScore() method: returns the student's total quiz score getAverageScore() returns the average score that is equal to the total quiz score divided by the number of quizzes taken. toString() method that returns a string describing a Student's object information as follows: Name: Maryam Abdullah, number of quizzes taken = 3, average quiz score = 8.00 Provide documentation comments for your class and class constructor(s) and method(s) using the Java standard

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Create a NetBeans project named Lab4_Yourld. Create a class named Student stored in a file named
Student.java and provide a tester class named Lab4_Yourld.java.
For the purpose of this exercise, a student has a name, number of quizzes taken by a student and a total quiz
score. Define appropriate instance variables to hold student information. Provide the following as the public
interface of class Student:
• A constructor that receives a string value to initialize a student's name. It initializes other instance
variables to their default values.
getName() method: returns the student's name
setName(String studentName) method that receives a string value and assign it to the student's name
addQuiz(double score) method that adds the received quiz score to the total score and increments the
number of quizzes taken.
getTotalScore() method: returns the student's total quiz score
getAverageScore() returns the average score that is equal to the total quiz score divided by the number
of quizzes taken.
toString() method that returns a string describing a Student's object information as follows:
Name: Maryam Abdullah, number of quizzes taken = 3, average quiz score = 8.00
Provide documentation comments for your class and class constructor(s) and method(s) using the Java standard
form for documentation comments discussed in this course
In the tester class, create two Student objects one of which holds your name, then call addQuiz() method several
times to add quizzes' scores to each student, and finally, print objects information as shown in the sample run.
Use the following information to represent both students’ objects.
• Student1 name: Mariam Abdullah took three quizzes of scores 8, 7 and 9.
• Student2 name: write your name, took four quizzes of scores 10, 9, 9.5, and 10.
Use method setName() to change the name of the student “Mariam Abdullah" to “Maryam Abdullah".
Figure 1 shows a sample run of a tester class.
Studenti Name: Mariam Abdullah
Number of quizzes taken: 3
Total score: 24.0
Average score: 8.00
Student2 Name: Waleed Salim
Number of quizzes taken: 4
Total score: 38.5
Average score: 9.63
Name: Maryam Abdullah, number of quizzes taken = 3, average score - 8.00
Name: Waleed Salim, number of quizzes taken - 4, average score - 9.63
The average score of both studenta: 8.01
BUILD SUCCESSFUL (total time: 0 seconds)
Figurel: A sample run of a tester class.
Transcribed Image Text:Create a NetBeans project named Lab4_Yourld. Create a class named Student stored in a file named Student.java and provide a tester class named Lab4_Yourld.java. For the purpose of this exercise, a student has a name, number of quizzes taken by a student and a total quiz score. Define appropriate instance variables to hold student information. Provide the following as the public interface of class Student: • A constructor that receives a string value to initialize a student's name. It initializes other instance variables to their default values. getName() method: returns the student's name setName(String studentName) method that receives a string value and assign it to the student's name addQuiz(double score) method that adds the received quiz score to the total score and increments the number of quizzes taken. getTotalScore() method: returns the student's total quiz score getAverageScore() returns the average score that is equal to the total quiz score divided by the number of quizzes taken. toString() method that returns a string describing a Student's object information as follows: Name: Maryam Abdullah, number of quizzes taken = 3, average quiz score = 8.00 Provide documentation comments for your class and class constructor(s) and method(s) using the Java standard form for documentation comments discussed in this course In the tester class, create two Student objects one of which holds your name, then call addQuiz() method several times to add quizzes' scores to each student, and finally, print objects information as shown in the sample run. Use the following information to represent both students’ objects. • Student1 name: Mariam Abdullah took three quizzes of scores 8, 7 and 9. • Student2 name: write your name, took four quizzes of scores 10, 9, 9.5, and 10. Use method setName() to change the name of the student “Mariam Abdullah" to “Maryam Abdullah". Figure 1 shows a sample run of a tester class. Studenti Name: Mariam Abdullah Number of quizzes taken: 3 Total score: 24.0 Average score: 8.00 Student2 Name: Waleed Salim Number of quizzes taken: 4 Total score: 38.5 Average score: 9.63 Name: Maryam Abdullah, number of quizzes taken = 3, average score - 8.00 Name: Waleed Salim, number of quizzes taken - 4, average score - 9.63 The average score of both studenta: 8.01 BUILD SUCCESSFUL (total time: 0 seconds) Figurel: A sample run of a tester class.
Expert Solution
steps

Step by step

Solved in 5 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY