write a java display this output :
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
the module details please use Arraylist Record .
the student id of 8 digit and starts with 1001
the student name length maximum is 25 characters with space inclusive
the study mode could be " Full time "or "Part time"
the name of programmes could be selected form the list as shown in table below
the current level could be 1 and 2.1 (means year 1 and 2 means years 2)
the code could be selected form the list as shown in table below
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