Menu

Import Javautilscanner Create Public Class Student Models Student Courses Grades Student C Q43886133

import java.util.Scanner;

create a public class student which models
a student having courses and grades. The student class has twovariables name and
address. The courses taken and grades for the courses are kept in 2parallel arrays.
The maximum number of courses taken by student is 30.
Create a constructor public Student(String name, String address).You can also
initialize number of courses and the grades array.

Create the public getters and setters public String getName(),public String getAddress(),
public void setAddress(String address). No setter for name as it isnot
designed to be changed.
Print the name and address of student
Write a method to add a course and grade for the student publicvoid addCourseGrade(
String course, int grade)
Print all courses taken and their grades by writing a method publicvoid print-
Grades()
Write a method to compute the average grade for the student publicdouble getAverageGrade()
The console output will look like this.
Jim(1 Happy Ave)
Jim(8 maple, vaughan)
Jim
8 maple, vaughan
Jim IM101:89 IM102:57 IM103:96
The average grade is 80.67

Expert Answer


Answer to import java.util.Scanner; create a public class student which models a student having courses and grades. The student cl…

OR