Answer to Question #267160 in Java | JSP | JSF for Date poon

Question #267160

• Create a Student Class to store the profile data including: student ID, name, password, study mode, the name of course the student has registered, the current level of the programme, they have enrolled in the current term,


the module codes and names,


attendance and exam mark


Hits:


1.Create a Student class


2.Variables to store profile data


3.Use array list to record the module details


4.setter for each variable in the Student class with data validation


5.getter for each variable in the Student class


6.constructor for the Student class

1
Expert's answer
2021-11-16T13:50:47-0500


package student;


public class Student {
    private int student_id;
    private String name;
    private String password;
    private String stude_mode;
    private String course_name;
    private String level;
    private int term;
    private int module_codes;
    private String module_names;
    private int attendance;
    private int exam_mark;


    public int getStudent_id() {
        return student_id;
    }


    public void setStudent_id(int student_id) {
        this.student_id = student_id;
    }


    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }


    public String getPassword() {
        return password;
    }


    public void setPassword(String password) {
        this.password = password;
    }


    public String getStude_mode() {
        return stude_mode;
    }


    public void setStude_mode(String stude_mode) {
        this.stude_mode = stude_mode;
    }


    public String getCourse_name() {
        return course_name;
    }


    public void setCourse_name(String course_name) {
        this.course_name = course_name;
    }


    public String getLevel() {
        return level;
    }


    public void setLevel(String level) {
        this.level = level;
    }


    public int getTerm() {
        return term;
    }


    public void setTerm(int term) {
        this.term = term;
    }


    public int getModule_codes() {
        return module_codes;
    }


    public void setModule_codes(int module_codes) {
        this.module_codes = module_codes;
    }


    public String getModule_names() {
        return module_names;
    }


    public void setModule_names(String module_names) {
        this.module_names = module_names;
    }


    public int getAttendance() {
        return attendance;
    }


    public void setAttendance(int attendance) {
        this.attendance = attendance;
    }


    public int getExam_mark() {
        return exam_mark;
    }


    public void setExam_mark(int exam_mark) {
        this.exam_mark = exam_mark;
    }


    public Student(int student_id, String name, String password, String stude_mode, String course_name, String level, int term, int module_codes, String module_names, int attendance, int exam_mark) {
        this.student_id = student_id;
        this.name = name;
        this.password = password;
        this.stude_mode = stude_mode;
        this.course_name = course_name;
        this.level = level;
        this.term = term;
        this.module_codes = module_codes;
        this.module_names = module_names;
        this.attendance = attendance;
        this.exam_mark = exam_mark;
    }


    public Student() {
    }
    
    
    public static void main(String[] args) {
        Student s=new Student();
    }
    
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS