output format display:
student Name: Florence Cheng
Student id:10010005
Study mode: Part time
programme:
higher diploma in Computer Technology
Cerrent Level: Year 1
Number of modules take by the term : 4
Code Attendance Exam Mark Grade
cs101 100% 80 HD
cs102 69% 71 D
Average Mark:
Average attendance:
Final Grage:
Remark: you need to retake some modules.
1.Create a Student Class to store the profile data including: student ID, student name, password, study mode.......
Create a Student class
Variables to store in profile data
Use array list to record the module details (module code, module name, mark, and attendance)
setter for each variable in the Student class with data validation
getter for each variable in the Student class
constructor for the Student class
public class Main {
private int StuID;
private int term;
private String Name;
private String Lev;
private int Emark;
private String course_name;
private String Pass;
private String stude_mode;
private int Mcode;
private String MNames;
private int Attend;
public void setStudent_id(int StuID) {
this.StuID = StuID;
}
public void setCourse_name(String course_name) {
this.course_name = course_name;
}
public String getName() {
return Name;
}
public void setName(String Name) {
this.Name = Name;
}
public String getPassword() {
return Pass;
}
public int getStudent_id() {
return StuID;
}
public void setPassword(String Pass) {
this.Pass = Pass;
}
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 String getLevel() {
return Lev;
}
public void setLevel(String Lev) {
this.Lev = Lev;
}
public void setTerm(int term) {
this.term = term;
}
public int getModule_codes() {
return Mcode;
}
public void setModule_codes(int Mcode) {
this.Mcode = Mcode;
}
public void setModule_names(String MNames) {
this.MNames = MNames;
}
public int getTerm() {
return term;
}
public int getAttendance() {
return Attend;
}
public String getModule_names() {
return MNames;
}
public void setAttendance(int Attend) {
this.Attend = Attend;
}
public int getExam_mark() {
return exam_mark;
}
public void setExam_mark(int Emark) {
this.Emark = Emark;
}
public Main(int StuID, String Name, String Pass, String stude_mode, String course_name, String Lev, int term, int Mcode, String MNames, int attend, int Emark) {
this.Name = Name;
this.Pass = Pass;
this.MNames = MNames;
this.Emark = Emark;
this.stude_mode = stude_mode;
this.course_name = course_name;
this.Mcode = Mcode;
this.Lev = Lev;
this.StuID = StuID;
this.term = term;
this.Attend = Attend;
}
public Main() {
}
public static void main(String[] args) {
Main s=new Main();
}
}
Comments
Leave a comment