this is my first programming course please take that into consideration please
instructions:
1. Add two private instance variables,
String courseName and char grade to this class.
2. Add accessor and mutator methods for these
instance variables.
3. Add a method register which receives an integer data type and returns String data type according to the argument passed to it (“Math” for 1, “English” for 2, “No course” for any other input)
what i have so far:
package assignment9; public class BannerUser { private int userId; public int getUserId() { return this.userId; } public void setUserId(int userId) { this.userId=userId; } private String courseName; public String getcourseName() { return this.courseName; } public void setcourseName(String courseName) { this.courseName=courseName; } private char grade; public char getGrade() { return this.grade; } String course; public String getCourse() { if (course = 1) return "Math"; else if(course = 2) return "English"; else if (course != 1 !=2) return "No course"; } }