├── README.md
└── SchoolManagementApp
├── manifest.mf
├── lib
├── nblibraries.properties
└── CopyLibs
│ └── org-netbeans-modules-java-j2seproject-copylibstask.jar
├── nbproject
├── genfiles.properties
├── project.xml
├── project.properties
└── build-impl.xml
├── src
└── schoolmanagementapp
│ ├── SchoolManagementApp.java
│ ├── Teacher.java
│ ├── Application.java
│ ├── Student.java
│ ├── Login.java
│ └── TeacherFuctions.java
└── build.xml
/README.md:
--------------------------------------------------------------------------------
1 | # student-management-java-console
2 | Login Detail for Teacher
3 | Teacher ID = 1
4 | Password = 123
5 |
--------------------------------------------------------------------------------
/SchoolManagementApp/manifest.mf:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | X-COMMENT: Main-Class will be added automatically by build
3 |
4 |
--------------------------------------------------------------------------------
/SchoolManagementApp/lib/nblibraries.properties:
--------------------------------------------------------------------------------
1 | libs.CopyLibs.classpath=\
2 | ${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar
3 | libs.CopyLibs.displayName=CopyLibs Task
4 | libs.CopyLibs.prop-version=2.0
5 |
--------------------------------------------------------------------------------
/SchoolManagementApp/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nirzaf/student-management-java-console/HEAD/SchoolManagementApp/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar
--------------------------------------------------------------------------------
/SchoolManagementApp/nbproject/genfiles.properties:
--------------------------------------------------------------------------------
1 | build.xml.data.CRC32=bd7c2d51
2 | build.xml.script.CRC32=fb099856
3 | build.xml.stylesheet.CRC32=8064a381@1.75.2.48
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 | nbproject/build-impl.xml.data.CRC32=bd7c2d51
7 | nbproject/build-impl.xml.script.CRC32=d1a51f74
8 | nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48
9 |
--------------------------------------------------------------------------------
/SchoolManagementApp/src/schoolmanagementapp/SchoolManagementApp.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package schoolmanagementapp;
7 |
8 | import java.util.Scanner;
9 |
10 | /**
11 | *
12 | * @author razmy
13 | */
14 | public class SchoolManagementApp {
15 |
16 | /**
17 | * @param args the command line arguments
18 | */
19 | public static void main(String[] args) {
20 |
21 |
22 | Login login = new Login();
23 | login.startApp();
24 | }
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/SchoolManagementApp/nbproject/project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | org.netbeans.modules.java.j2seproject
4 |
5 |
6 | SchoolManagementApp
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | ./lib/nblibraries.properties
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/SchoolManagementApp/src/schoolmanagementapp/Teacher.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package schoolmanagementapp;
7 |
8 | /**
9 | *
10 | * @author razmy
11 | */
12 | public class Teacher {
13 | int id;
14 | String password;
15 | String name;
16 |
17 | public Teacher() {
18 | }
19 |
20 | public Teacher(int id, String password, String name) {
21 | this.id = id;
22 | this.password = password;
23 | this.name = name;
24 | }
25 |
26 | public int getId() {
27 | return id;
28 | }
29 |
30 | public void setId(int id) {
31 | this.id = id;
32 | }
33 |
34 | public String getPassword() {
35 | return password;
36 | }
37 |
38 | public void setPassword(String password) {
39 | this.password = password;
40 | }
41 |
42 | public String getName() {
43 | return name;
44 | }
45 |
46 | public void setName(String name) {
47 | this.name = name;
48 | }
49 |
50 | @Override
51 | public String toString() {
52 | return "Teacher{" + "id=" + id + ", password=" + password + ", name=" + name + '}';
53 | }
54 |
55 |
56 |
57 | }
58 |
--------------------------------------------------------------------------------
/SchoolManagementApp/src/schoolmanagementapp/Application.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package schoolmanagementapp;
7 |
8 | import com.sun.javafx.scene.control.skin.VirtualFlow;
9 | import java.util.List;
10 | import java.util.Scanner;
11 |
12 | /**
13 | *
14 | * @author razmy
15 | */
16 | public class Application {
17 |
18 |
19 | public Application() {
20 |
21 | }
22 |
23 | public void startApp(){
24 |
25 | Scanner scanner = new Scanner(System.in);
26 | int option = 0;
27 | Login login = new Login();
28 |
29 | do{
30 |
31 | System.out.println("####### Menue ######");
32 | System.out.println("ENTER 1 FOR Teacher Login");
33 | System.out.println("ENTER 2 FOR Student Login");
34 | System.out.println("ENTER 3 FOR Exit");
35 |
36 | int ch = scanner.nextInt();
37 |
38 | switch(ch){
39 |
40 | case 1:
41 | System.out.println("Teacher Login --- please enter id and password");
42 | login.teacherLogin();
43 | break;
44 | case 2:
45 | System.out.println("Student Login ---- please enter student id and password");
46 | login.studentLogin();
47 | break;
48 | case 3:
49 | System.out.println("Exiting System");
50 | System.exit(0);
51 |
52 | }
53 | System.out.println("Press 3 to exit press any other key to continue");
54 | option = scanner.nextInt();
55 | }while(option!=3);
56 | }
57 |
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/SchoolManagementApp/nbproject/project.properties:
--------------------------------------------------------------------------------
1 | annotation.processing.enabled=true
2 | annotation.processing.enabled.in.editor=false
3 | annotation.processing.processor.options=
4 | annotation.processing.processors.list=
5 | annotation.processing.run.all.processors=true
6 | annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
7 | build.classes.dir=${build.dir}/classes
8 | build.classes.excludes=**/*.java,**/*.form
9 | # This directory is removed when the project is cleaned:
10 | build.dir=build
11 | build.generated.dir=${build.dir}/generated
12 | build.generated.sources.dir=${build.dir}/generated-sources
13 | # Only compile against the classpath explicitly listed here:
14 | build.sysclasspath=ignore
15 | build.test.classes.dir=${build.dir}/test/classes
16 | build.test.results.dir=${build.dir}/test/results
17 | # Uncomment to specify the preferred debugger connection transport:
18 | #debug.transport=dt_socket
19 | debug.classpath=\
20 | ${run.classpath}
21 | debug.test.classpath=\
22 | ${run.test.classpath}
23 | # Files in build.classes.dir which should be excluded from distribution jar
24 | dist.archive.excludes=
25 | # This directory is removed when the project is cleaned:
26 | dist.dir=dist
27 | dist.jar=${dist.dir}/SchoolManagementApp.jar
28 | dist.javadoc.dir=${dist.dir}/javadoc
29 | excludes=
30 | includes=**
31 | jar.compress=false
32 | javac.classpath=
33 | # Space-separated list of extra javac options
34 | javac.compilerargs=
35 | javac.deprecation=false
36 | javac.processorpath=\
37 | ${javac.classpath}
38 | javac.source=1.8
39 | javac.target=1.8
40 | javac.test.classpath=\
41 | ${javac.classpath}:\
42 | ${build.classes.dir}
43 | javac.test.processorpath=\
44 | ${javac.test.classpath}
45 | javadoc.additionalparam=
46 | javadoc.author=false
47 | javadoc.encoding=${source.encoding}
48 | javadoc.noindex=false
49 | javadoc.nonavbar=false
50 | javadoc.notree=false
51 | javadoc.private=false
52 | javadoc.splitindex=true
53 | javadoc.use=true
54 | javadoc.version=false
55 | javadoc.windowtitle=
56 | main.class=schoolmanagementapp.SchoolManagementApp
57 | manifest.file=manifest.mf
58 | meta.inf.dir=${src.dir}/META-INF
59 | mkdist.disabled=false
60 | platform.active=default_platform
61 | run.classpath=\
62 | ${javac.classpath}:\
63 | ${build.classes.dir}
64 | # Space-separated list of JVM arguments used when running the project.
65 | # You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
66 | # To set system properties for unit tests define test-sys-prop.name=value:
67 | run.jvmargs=
68 | run.test.classpath=\
69 | ${javac.test.classpath}:\
70 | ${build.test.classes.dir}
71 | source.encoding=UTF-8
72 | src.dir=src
73 | test.src.dir=test
74 |
--------------------------------------------------------------------------------
/SchoolManagementApp/src/schoolmanagementapp/Student.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package schoolmanagementapp;
7 |
8 | /**
9 | *
10 | * @author razmy
11 | */
12 | public class Student {
13 |
14 | int id;
15 | String password;
16 | String firstName;
17 | String lastName;
18 | String address;
19 | int marksA;
20 | int marksB;
21 | int marksC;
22 |
23 | String gradeA;
24 | String geadeB;
25 | String gradeC;
26 |
27 |
28 | public Student() {
29 | }
30 |
31 | public Student(int id, String password, String firstName, String lastName, String address, int marksA, int marksB, int marksC, String gradeA, String geadeB, String gradeC) {
32 | this.id = id;
33 | this.password = password;
34 | this.firstName = firstName;
35 | this.lastName = lastName;
36 | this.address = address;
37 | this.marksA = marksA;
38 | this.marksB = marksB;
39 | this.marksC = marksC;
40 | this.gradeA = gradeA;
41 | this.geadeB = geadeB;
42 | this.gradeC = gradeC;
43 | }
44 |
45 |
46 |
47 | public int getId() {
48 | return id;
49 | }
50 |
51 | public void setId(int id) {
52 | this.id = id;
53 | }
54 |
55 | public String getPassword() {
56 | return password;
57 | }
58 |
59 | public void setPassword(String password) {
60 | this.password = password;
61 | }
62 |
63 | public String getFirstName() {
64 | return firstName;
65 | }
66 |
67 | public void setFirstName(String firstName) {
68 | this.firstName = firstName;
69 | }
70 |
71 | public String getLastName() {
72 | return lastName;
73 | }
74 |
75 | public void setLastName(String lastName) {
76 | this.lastName = lastName;
77 | }
78 |
79 | public String getAddress() {
80 | return address;
81 | }
82 |
83 | public void setAddress(String address) {
84 | this.address = address;
85 | }
86 |
87 | public int getMarksA() {
88 | return marksA;
89 | }
90 |
91 | public void setMarksA(int marksA) {
92 | this.marksA = marksA;
93 | }
94 |
95 | public int getMarksB() {
96 | return marksB;
97 | }
98 |
99 | public void setMarksB(int marksB) {
100 | this.marksB = marksB;
101 | }
102 |
103 | public int getMarksC() {
104 | return marksC;
105 | }
106 |
107 | public void setMarksC(int marksC) {
108 | this.marksC = marksC;
109 | }
110 |
111 | public String getGradeA() {
112 | return gradeA;
113 | }
114 |
115 | public void setGradeA(String gradeA) {
116 | this.gradeA = gradeA;
117 | }
118 |
119 | public String getGeadeB() {
120 | return geadeB;
121 | }
122 |
123 | public void setGeadeB(String geadeB) {
124 | this.geadeB = geadeB;
125 | }
126 |
127 | public String getGradeC() {
128 | return gradeC;
129 | }
130 |
131 | public void setGradeC(String gradeC) {
132 | this.gradeC = gradeC;
133 | }
134 |
135 |
136 | @Override
137 | public String toString() {
138 | return "Student{" + "id=" + id + ", password=" + password + ", firstName=" + firstName + ", lastName=" + lastName + ", address=" + address + '}';
139 | }
140 |
141 |
142 | }
143 |
--------------------------------------------------------------------------------
/SchoolManagementApp/build.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | Builds, tests, and runs the project SchoolManagementApp.
12 |
13 |
73 |
74 |
--------------------------------------------------------------------------------
/SchoolManagementApp/src/schoolmanagementapp/Login.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package schoolmanagementapp;
7 |
8 | import java.util.List;
9 | import java.util.Scanner;
10 |
11 | /**
12 | *
13 | * @author razmy
14 | */
15 | public class Login {
16 |
17 | private Teacher teacher;
18 | private TeacherFuctions teacherFuctions;
19 | Scanner scanner = new Scanner(System.in);
20 |
21 | public Login() {
22 |
23 |
24 |
25 | teacher = new Teacher();
26 | teacher.setId(1);
27 | teacher.setPassword("123");
28 | teacher.setName("Default Teacher");
29 |
30 |
31 |
32 | teacherFuctions = new TeacherFuctions();
33 |
34 |
35 | }
36 |
37 | public void teacherLogin(){
38 | System.out.println("Please Enter Teacher Id");
39 | int id = scanner.nextInt();
40 | System.out.println("Please Enter Password");
41 | String password = scanner.next();
42 | if(id!=teacher.getId() && password!=teacher.getPassword()){
43 |
44 | System.err.println("Unautherized");
45 |
46 | }
47 | else {
48 | System.out.println("Welcome " + teacher.getName());
49 | afterTeacherLogin();
50 | }
51 | }
52 |
53 | public void studentLogin(){
54 |
55 | System.out.println("Please Enter Student Id");
56 | int id = scanner.nextInt();
57 | System.out.println("Please Enter Student Password");
58 | String password = scanner.next();
59 |
60 | for(Student student: teacherFuctions.getStudentList()){
61 |
62 | if(id!=student.getId() && password != student.getPassword()){
63 |
64 | System.err.println("Unautherized");
65 | }
66 | else{
67 | System.out.println("Welcome " + student.getFirstName() +" "+student.getLastName() );
68 | afterStudentLogin(student);
69 |
70 | }
71 | }
72 |
73 | }
74 |
75 | public void afterTeacherLogin(){
76 |
77 | int option=0;
78 | do{
79 |
80 | System.out.println("####### Teacher's Menue ######");
81 | System.out.println("Press 1 To Add Student");
82 | System.out.println("Press 2 To Print Students Details with Grade");
83 | System.out.println("Print 3 To Find higher mark holder for each subject ");
84 | System.out.println("Press 4 to Print Student Report");
85 | System.out.println("Press 5 to remove student");
86 | System.out.println("Pres 6 Logout");
87 |
88 | int ch = scanner.nextInt();
89 |
90 | switch(ch){
91 |
92 | case 1:
93 | System.out.println("Please Provide information about Student");
94 | teacherFuctions.addStudent();
95 | break;
96 | case 2:
97 |
98 | teacherFuctions.displayAllStudent();
99 | break;
100 | case 3:
101 | teacherFuctions.displayHigerMarkHolder();
102 | break;
103 | case 4:
104 | teacherFuctions.printStudentReport();
105 | case 5:
106 | teacherFuctions.removeStudent();
107 | case 6:
108 | this.startApp();
109 |
110 | }
111 | System.out.println("Press 6 to logout press any other key to continue");
112 | option = scanner.nextInt();
113 | }while(option!=6);
114 | }
115 |
116 | public void afterStudentLogin(Student student){
117 |
118 | System.out.println("--------------------------------------------------------------------------------------------------"+"\n");
119 | System.out.printf("%3s %10s %10s %10s %10s %10s %10s %10s %10s ","ID", "FIRSTNAME", "LASTNAME","Sub-A Mark","Sub-A Grade","Sub-B Mark","Sub-B Grade","Sub-C Mark","Sub-C Grade"+"\n");
120 | System.out.println("--------------------------------------------------------------------------------------------------"+"\n");
121 | System.out.format("%3s %10s %10s %10d %10s %10d %10s %10d %10s",student.getId(), student.getFirstName(), student.getLastName(),
122 | student.getMarksA(),student.getGradeA(),student.getMarksB(),student.getGeadeB(),student.getMarksC(),student.getGradeC()+"\n");
123 | System.out.println();
124 | }
125 |
126 | public void startApp(){
127 |
128 | Scanner scanner = new Scanner(System.in);
129 | int option = 0;
130 |
131 |
132 | do{
133 |
134 | System.out.println("####### Menue ######");
135 | System.out.println("ENTER 1 FOR Teacher Login");
136 | System.out.println("ENTER 2 FOR Student Login");
137 | System.out.println("ENTER 3 FOR Exit");
138 |
139 | int ch = scanner.nextInt();
140 |
141 | switch(ch){
142 |
143 | case 1:
144 | System.out.println("Teacher Login --- please enter id and password");
145 | this.teacherLogin();
146 | break;
147 | case 2:
148 | System.out.println("Student Login ---- please enter student id and password");
149 | this.studentLogin();
150 | break;
151 | case 3:
152 | System.out.println("Exiting System");
153 | System.exit(0);
154 |
155 | }
156 | System.out.println("Press 3 to exit press any other key to continue");
157 | option = scanner.nextInt();
158 | }while(option!=3);
159 | }
160 |
161 | }
162 |
--------------------------------------------------------------------------------
/SchoolManagementApp/src/schoolmanagementapp/TeacherFuctions.java:
--------------------------------------------------------------------------------
1 | /*
2 | * To change this license header, choose License Headers in Project Properties.
3 | * To change this template file, choose Tools | Templates
4 | * and open the template in the editor.
5 | */
6 | package schoolmanagementapp;
7 |
8 | import java.util.ArrayList;
9 | import java.util.Collection;
10 | import java.util.Collections;
11 | import java.util.HashMap;
12 | import java.util.List;
13 | import java.util.Map;
14 | import java.util.Scanner;
15 |
16 | /**
17 | *
18 | * @author razmy
19 | */
20 | public class TeacherFuctions {
21 |
22 | private List studentList = new ArrayList<>();
23 | Scanner scanner = new Scanner(System.in);
24 |
25 | public TeacherFuctions() {
26 |
27 | }
28 |
29 | public List getStudentList(){
30 |
31 | return this.studentList;
32 | }
33 |
34 | public void addStudent(){
35 | Student student = new Student();
36 | System.out.println("Enter Student ID");
37 | student.setId(scanner.nextInt());
38 | System.out.println("Enter Password for Student");
39 | student.setPassword(scanner.next());
40 | System.out.println("Enter Student First Name");
41 | student.setFirstName(scanner.next());
42 | System.out.println("Enter Student Last Name");
43 | student.setLastName(scanner.next());
44 | System.out.println("Enter Student Address");
45 | student.setAddress(scanner.next());
46 | System.out.println("Enter Mark for Subject A");
47 | student.setMarksA(scanner.nextInt());
48 | student.setGradeA(markCalculater(student.getMarksA()));
49 | System.out.println("Enter Mark for Subject B");
50 | student.setMarksB(scanner.nextInt());
51 | student.setGeadeB(markCalculater(student.getMarksB()));
52 | System.out.println("Enter Mark for Subject C");
53 | student.setMarksC(scanner.nextInt());
54 | student.setGradeC(markCalculater(student.getMarksC()));
55 |
56 | studentList.add(student);
57 | }
58 |
59 | public void displayAllStudent(){
60 |
61 | System.out.println("--------------------------------------------------------------------------------------------------"+"\n");
62 | System.out.printf("%3s %10s %10s %15s %10s %10s %10s %10s %10s %10s ","ID", "FIRSTNAME", "LASTNAME", "ADDRESS","Sub-A Mark","Sub-A Grade","Sub-B Mark","Sub-B Grade","Sub-C Mark","Sub-C Grade"+"\n");
63 | System.out.println("--------------------------------------------------------------------------------------------------"+"\n");
64 | for(Student student : studentList){
65 | System.out.format("%3s %10s %10s %15s %10d %10s %10d %10s %10d %10s",student.getId(), student.getFirstName(), student.getLastName(),
66 | student.getAddress(),student.getMarksA(),student.getGradeA(),student.getMarksB(),student.getGeadeB(),student.getMarksC(),student.getGradeC()+"\n");
67 | System.out.println();
68 | }
69 | System.out.println("-------------------------------------------------------------------------------------------------------");
70 |
71 | }
72 |
73 | public void displayHigerMarkHolder(){
74 |
75 |
76 | HashMap subA = new HashMap<>();
77 | HashMap subB = new HashMap<>();
78 | HashMap subC = new HashMap<>();
79 |
80 | for(Student stu : studentList){
81 |
82 | subA.put(stu.getFirstName() + " " + stu.getLastName(), stu.getMarksA());
83 | subB.put(stu.getFirstName() + " " + stu.getLastName(), stu.getMarksB());
84 | subC.put(stu.getFirstName() + " " + stu.getLastName(), stu.getMarksC());
85 |
86 | }
87 |
88 | Object maxNameA = Collections.max(subA.entrySet(), Map.Entry.comparingByValue()).getKey();
89 | Object maxNameB = Collections.max(subB.entrySet(), Map.Entry.comparingByValue()).getKey();
90 | Object maxNameC = Collections.max(subC.entrySet(), Map.Entry.comparingByValue()).getKey();
91 |
92 | System.out.println("For Subject A = " + maxNameA);
93 | System.out.println("For Subject B = " + maxNameB);
94 | System.out.println("For Subject C = " + maxNameC);
95 | //System.out.println(subA);
96 |
97 | }
98 |
99 | public void printStudentReport(){
100 | System.out.println("Please Enter Student ID to Print Report");
101 | int student_id = scanner.nextInt();
102 | for(Student student : studentList){
103 |
104 | if(student_id == student.getId()){
105 | System.out.println("-----------------------Student Report for "+student.getFirstName()+" " +student.getLastName()+"------");
106 | System.out.println("--------------------------------------------------------------------------------------------------"+"\n");
107 | System.out.printf("%3s %10s %10s %10s %10s %10s %10s %10s %10s ","ID", "FIRSTNAME", "LASTNAME","Sub-A Mark","Sub-A Grade","Sub-B Mark","Sub-B Grade","Sub-C Mark","Sub-C Grade"+"\n");
108 | System.out.println("--------------------------------------------------------------------------------------------------"+"\n");
109 | System.out.format("%3s %10s %10s %10d %10s %10d %10s %10d %10s",student.getId(), student.getFirstName(), student.getLastName(),
110 | student.getMarksA(),student.getGradeA(),student.getMarksB(),student.getGeadeB(),student.getMarksC(),student.getGradeC()+"\n");
111 | System.out.println();
112 |
113 | }
114 | }
115 | }
116 |
117 | public void removeStudent(){
118 |
119 | System.out.println("Please Enter Student ID to Remove from system");
120 | int studentID = scanner.nextInt();
121 | studentList.removeIf(n -> (n.getId()==studentID));
122 | displayAllStudent();
123 | }
124 |
125 | public String markCalculater(int marks){
126 |
127 | String grade = null;
128 | if(marks<=34){
129 |
130 | grade ="F";
131 | }
132 | else if(marks>34 && marks<=54){
133 |
134 | grade = "D";
135 | }
136 | else if(marks>54 && marks<=64){
137 |
138 | grade = "C";
139 | }
140 | else if(marks>64 && marks<=74){
141 |
142 | grade = "B";
143 | }
144 | else if(marks>74 && marks<=100){
145 |
146 | grade ="A";
147 | }
148 |
149 | return grade;
150 | }
151 | }
152 |
--------------------------------------------------------------------------------
/SchoolManagementApp/nbproject/build-impl.xml:
--------------------------------------------------------------------------------
1 |
2 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 | Must set src.dir
252 | Must set test.src.dir
253 | Must set build.dir
254 | Must set dist.dir
255 | Must set build.classes.dir
256 | Must set dist.javadoc.dir
257 | Must set build.test.classes.dir
258 | Must set build.test.results.dir
259 | Must set build.classes.excludes
260 | Must set dist.jar
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
269 |
270 |
271 |
272 |
273 |
274 |
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 |
292 |
293 |
294 |
295 |
296 |
297 |
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
315 |
316 |
317 |
318 |
319 |
320 |
321 |
322 |
323 |
324 |
325 |
326 |
327 |
328 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
340 |
341 |
342 |
343 |
344 |
345 |
346 |
347 |
348 |
349 |
350 |
351 |
352 |
353 |
354 |
355 |
356 |
357 |
358 |
359 |
360 |
361 | Must set javac.includes
362 |
363 |
364 |
365 |
366 |
367 |
368 |
369 |
370 |
371 |
372 |
373 |
374 |
375 |
376 |
377 |
378 |
379 |
380 |
381 |
382 |
383 |
384 |
385 |
386 |
387 |
388 |
389 |
390 |
391 |
392 |
393 |
394 |
395 |
396 |
397 |
398 |
399 |
400 |
401 |
402 |
403 |
404 |
405 |
406 |
407 |
408 |
409 |
410 |
411 |
412 |
413 |
414 |
415 |
416 |
417 |
418 |
419 |
420 |
421 |
422 |
423 |
424 |
425 |
426 |
427 |
428 |
429 |
430 |
431 |
432 |
433 |
434 |
435 |
436 |
437 |
438 |
439 |
440 |
441 |
442 |
443 |
444 |
445 |
446 |
447 |
448 |
449 |
450 |
451 |
452 |
453 |
454 |
455 |
456 |
457 |
458 |
459 |
460 |
461 |
462 |
463 |
464 |
465 |
466 |
467 |
468 |
469 |
470 |
471 |
472 |
473 |
474 |
475 |
476 |
477 |
478 |
479 |
480 |
481 |
482 |
483 |
484 |
485 |
486 |
487 |
488 |
489 |
490 | No tests executed.
491 |
492 |
493 |
494 |
495 |
496 |
497 |
498 |
499 |
500 |
501 |
502 |
503 |
504 |
505 |
506 |
507 |
508 |
509 |
510 |
511 |
512 |
513 |
514 |
515 |
516 |
517 |
518 |
519 |
520 |
521 |
522 |
523 |
524 |
525 |
526 |
527 |
528 |
529 |
530 |
531 |
532 |
533 |
534 |
535 |
536 |
537 |
538 |
539 |
540 |
541 |
542 |
543 |
544 |
545 |
546 |
547 |
548 |
549 |
550 |
551 |
552 |
553 |
554 |
555 |
556 |
557 |
558 |
559 |
560 |
561 |
562 |
563 |
564 |
565 |
566 |
567 |
568 |
569 |
570 |
571 |
572 |
573 |
574 |
575 |
576 |
577 |
578 |
579 |
580 |
581 |
582 |
583 |
584 |
585 |
586 |
587 |
588 |
589 |
590 |
591 |
592 |
593 |
594 |
595 |
596 |
597 |
598 |
599 |
600 |
601 |
602 |
603 |
604 |
605 |
606 |
607 |
608 |
609 |
610 |
611 |
612 |
613 |
614 |
615 |
616 |
617 |
618 |
619 |
620 |
621 |
622 |
623 |
624 |
625 |
626 |
627 |
628 |
629 |
630 |
631 |
632 |
633 |
634 |
635 |
636 |
637 |
638 |
639 |
640 |
641 |
642 |
643 |
644 |
645 |
646 |
647 |
648 |
649 |
650 |
651 |
652 |
653 |
654 |
655 |
656 |
657 |
658 |
659 |
660 |
661 |
662 |
663 |
664 |
665 |
666 |
667 |
668 |
669 |
670 |
671 |
672 |
673 |
674 |
675 |
676 |
677 |
678 |
679 |
680 |
681 |
682 |
683 |
684 |
685 |
686 |
687 |
688 |
689 |
690 |
691 |
692 |
693 |
694 |
695 |
698 |
699 |
700 |
701 |
702 |
703 |
704 |
705 |
706 |
707 |
708 |
709 |
710 |
711 |
712 |
713 |
714 |
715 |
716 |
717 |
718 |
719 |
720 |
721 |
722 |
723 |
724 |
725 |
726 |
727 |
728 |
729 |
730 |
731 |
732 |
733 |
734 |
735 |
736 |
737 |
738 |
739 |
740 | Must set JVM to use for profiling in profiler.info.jvm
741 | Must set profiler agent JVM arguments in profiler.info.jvmargs.agent
742 |
743 |
746 |
747 |
748 |
749 |
750 |
751 |
752 |
753 |
754 |
755 |
756 |
757 |
758 |
759 |
760 |
761 |
762 |
763 |
764 |
765 |
766 |
767 |
768 |
769 |
770 |
771 |
772 |
773 |
774 |
775 |
776 |
777 |
778 |
779 |
780 |
781 |
782 |
783 |
784 |
785 |
786 |
787 |
788 |
789 |
790 |
791 |
792 |
793 |
794 |
795 |
796 |
797 |
798 |
799 |
800 |
801 |
802 |
803 |
804 |
805 |
806 |
807 |
808 |
809 |
810 |
811 |
812 |
813 |
814 |
815 |
816 |
817 |
818 |
819 |
820 |
821 |
822 |
823 |
824 |
825 |
826 |
827 |
828 |
829 |
830 |
831 |
832 |
833 |
834 |
835 |
836 |
837 |
838 |
839 |
840 |
841 |
842 |
843 |
844 |
845 |
846 |
847 |
848 |
849 |
850 |
851 |
852 |
853 |
854 |
855 |
856 |
857 |
858 |
859 |
860 |
861 |
862 |
863 |
864 |
865 |
866 |
867 |
868 |
869 |
870 |
871 |
872 |
873 |
874 |
875 |
876 |
877 |
878 |
879 |
880 |
881 |
882 |
883 |
884 |
885 |
886 |
887 |
888 |
889 |
890 |
891 |
892 |
893 |
894 |
895 |
896 |
897 |
898 |
899 |
900 |
901 |
902 |
903 |
904 |
909 |
910 |
911 |
912 |
913 |
914 |
915 |
916 |
917 |
918 |
919 |
920 |
921 |
922 |
923 |
924 |
925 |
926 |
927 |
928 |
929 |
930 |
931 |
932 |
933 |
934 |
935 |
936 |
937 |
938 |
939 |
940 |
941 |
942 |
943 |
944 |
945 |
946 |
947 |
948 |
949 |
950 |
951 |
952 |
953 |
954 |
955 |
956 |
957 |
958 |
959 |
960 |
961 |
962 |
963 |
964 |
965 |
966 |
967 |
968 |
969 | Must select some files in the IDE or set javac.includes
970 |
971 |
972 |
973 |
974 |
975 |
976 |
977 |
978 |
983 |
984 |
985 |
986 |
987 |
988 |
989 |
990 |
991 |
992 |
993 |
994 |
995 |
996 |
997 |
998 |
999 |
1000 |
1001 |
1002 |
1003 |
1004 |
1005 |
1006 |
1007 |
1008 |
1009 |
1010 |
1011 |
1012 |
1013 |
1014 |
1015 |
1016 |
1017 |
1018 |
1019 | To run this application from the command line without Ant, try:
1020 |
1021 | java -jar "${dist.jar.resolved}"
1022 |
1023 |
1024 |
1025 |
1026 |
1027 |
1028 |
1029 |
1030 |
1031 |
1032 |
1033 |
1034 |
1035 |
1036 |
1037 |
1038 |
1039 |
1040 |
1041 |
1042 |
1043 |
1044 |
1045 |
1046 |
1047 |
1048 |
1049 |
1050 |
1051 |
1052 |
1057 |
1058 |
1059 |
1060 |
1061 |
1062 |
1063 |
1064 |
1065 |
1066 |
1067 |
1068 | Must select one file in the IDE or set run.class
1069 |
1070 |
1071 |
1072 | Must select one file in the IDE or set run.class
1073 |
1074 |
1075 |
1080 |
1081 |
1082 |
1083 |
1084 |
1085 |
1086 |
1087 |
1088 |
1089 |
1090 |
1091 |
1092 |
1093 |
1094 |
1095 |
1096 |
1097 |
1098 |
1099 | Must select one file in the IDE or set debug.class
1100 |
1101 |
1102 |
1103 |
1104 | Must select one file in the IDE or set debug.class
1105 |
1106 |
1107 |
1108 |
1109 | Must set fix.includes
1110 |
1111 |
1112 |
1113 |
1114 |
1115 |
1116 |
1121 |
1124 |
1125 | This target only works when run from inside the NetBeans IDE.
1126 |
1127 |
1128 |
1129 |
1130 |
1131 |
1132 |
1133 |
1134 | Must select one file in the IDE or set profile.class
1135 | This target only works when run from inside the NetBeans IDE.
1136 |
1137 |
1138 |
1139 |
1140 |
1141 |
1142 |
1143 |
1144 | This target only works when run from inside the NetBeans IDE.
1145 |
1146 |
1147 |
1148 |
1149 |
1150 |
1151 |
1152 |
1153 |
1154 |
1155 |
1156 |
1157 | This target only works when run from inside the NetBeans IDE.
1158 |
1159 |
1160 |
1161 |
1162 |
1163 |
1164 |
1165 |
1166 |
1167 |
1168 |
1169 |
1170 |
1171 |
1172 |
1173 |
1174 |
1175 |
1176 |
1177 |
1178 |
1179 |
1182 |
1183 |
1184 |
1185 |
1186 |
1187 |
1188 |
1189 |
1190 |
1191 |
1192 |
1193 |
1194 |
1195 | Must select one file in the IDE or set run.class
1196 |
1197 |
1198 |
1199 |
1200 |
1201 | Must select some files in the IDE or set test.includes
1202 |
1203 |
1204 |
1205 |
1206 | Must select one file in the IDE or set run.class
1207 |
1208 |
1209 |
1210 |
1211 | Must select one file in the IDE or set applet.url
1212 |
1213 |
1214 |
1215 |
1220 |
1221 |
1222 |
1223 |
1224 |
1225 |
1226 |
1227 |
1228 |
1229 |
1230 |
1231 |
1232 |
1233 |
1234 |
1235 |
1236 |
1237 |
1238 |
1239 |
1240 |
1241 |
1242 |
1243 |
1244 |
1245 |
1246 |
1247 |
1248 |
1249 |
1250 |
1251 |
1252 |
1253 |
1254 |
1255 |
1256 |
1257 |
1258 |
1259 |
1264 |
1265 |
1266 |
1267 |
1268 |
1269 |
1270 |
1271 |
1272 |
1273 |
1274 |
1275 |
1276 |
1277 |
1278 |
1279 |
1280 |
1281 |
1282 |
1283 |
1284 |
1285 |
1286 |
1287 |
1288 |
1289 |
1290 | Must select some files in the IDE or set javac.includes
1291 |
1292 |
1293 |
1294 |
1295 |
1296 |
1297 |
1298 |
1299 |
1300 |
1301 |
1302 |
1307 |
1308 |
1309 |
1310 |
1311 |
1312 |
1313 |
1314 | Some tests failed; see details above.
1315 |
1316 |
1317 |
1318 |
1319 |
1320 |
1321 |
1322 |
1323 | Must select some files in the IDE or set test.includes
1324 |
1325 |
1326 |
1327 | Some tests failed; see details above.
1328 |
1329 |
1330 |
1331 | Must select some files in the IDE or set test.class
1332 | Must select some method in the IDE or set test.method
1333 |
1334 |
1335 |
1336 | Some tests failed; see details above.
1337 |
1338 |
1339 |
1344 |
1345 | Must select one file in the IDE or set test.class
1346 |
1347 |
1348 |
1349 | Must select one file in the IDE or set test.class
1350 | Must select some method in the IDE or set test.method
1351 |
1352 |
1353 |
1354 |
1355 |
1356 |
1357 |
1358 |
1359 |
1360 |
1361 |
1362 |
1367 |
1368 | Must select one file in the IDE or set applet.url
1369 |
1370 |
1371 |
1372 |
1373 |
1374 |
1375 |
1380 |
1381 | Must select one file in the IDE or set applet.url
1382 |
1383 |
1384 |
1385 |
1386 |
1387 |
1388 |
1389 |
1394 |
1395 |
1396 |
1397 |
1398 |
1399 |
1400 |
1401 |
1402 |
1403 |
1404 |
1405 |
1406 |
1407 |
1408 |
1409 |
1410 |
1411 |
1412 |
1413 |
1414 |
1415 |
1416 |
1417 |
1418 |
1419 |
1420 |
1421 |
1422 |
1423 |
1424 |
1425 |
1426 |
1427 |
1428 |
1429 |
1430 |
1431 |
1432 |
1433 |
1434 |
1435 |
1436 |
1437 |
1438 |
1439 |
--------------------------------------------------------------------------------