Question: JAVA Write a program that allows the user to enter and then search a list of student names and grades. Your program will execute in
JAVA

Write a program that allows the user to enter and then search a list of student names and grades. Your program will execute in two phases. In the first phase, the user will enter student name and grade pairs. In the second phase, the user will search this data for matching parts of names, or matching grades. Each name and grade pair must be stored in an object of type Student. You will need to write the student class. (Remember that each class is stored in its own file.) The Student class should have private instance variables to store a single name (a String) and a single grade (a char). In addition, it should have methods with the following signarures. public Student (String aName, char aGrade] public String getName () public char getGrade () Your class should have no other public mcthods, and it mast hanve proper Jazadoc documeniation. In the first phase, your program will prompt the user for the number of name and grade pairs. Note that, unlike in project 3, you should not prompt the user for the number of students. Create a new Student object for each pair, and then store this object in an ArrayList. In the second phase, the user will enter a series of queries. There are two types of queries: a name search indicated by the String "name" followed by another String representing part of a name, and a grade search, indicated by the String "grade" followed by another String representing the grade. . For each query, your program should print out all information for any student that matches that particular query Write a program that allows the user to enter and then search a list of student names and grades. Your program will execute in two phases. In the first phase, the user will enter student name and grade pairs. In the second phase, the user will search this data for matching parts of names, or matching grades. Each name and grade pair must be stored in an object of type Student. You will need to write the student class. (Remember that each class is stored in its own file.) The Student class should have private instance variables to store a single name (a String) and a single grade (a char). In addition, it should have methods with the following signarures. public Student (String aName, char aGrade] public String getName () public char getGrade () Your class should have no other public mcthods, and it mast hanve proper Jazadoc documeniation. In the first phase, your program will prompt the user for the number of name and grade pairs. Note that, unlike in project 3, you should not prompt the user for the number of students. Create a new Student object for each pair, and then store this object in an ArrayList. In the second phase, the user will enter a series of queries. There are two types of queries: a name search indicated by the String "name" followed by another String representing part of a name, and a grade search, indicated by the String "grade" followed by another String representing the grade. . For each query, your program should print out all information for any student that matches that particular query
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
