// Xu Huai 20,183,603 CCB 1805-1
Package Penalty for Student;
Package Penalty for Student;
import java.text.DecimalFormat;
import java.util.Scanner;
import java.util.Scanner;
ScoreManagement class {public
static int n-, I;
static int NUM = 0;
static Boolean = T to true;
static Boolean = T1 to true;
static ScoreInformation [] = new new SC ScoreInformation [100];
static Scanner Scanner Scan new new = (the System.in );
public static void main (String args []) {
SC [NUM] = new new ScoreInformation ();
the while (T) {
System.out.println ( "*************** ****************************************** ");
System.out.println ( "software Engineering, Shijiazhuang Railway Institute");
System.out.println ( "student management system version 2019");
System.out.println ( "**************** ****************************************** ");
System.out.println ( ' 1, create a student information ");
System.out.println ( "2, student test scores Entry");
System.out.println ( "3, student test scores modification");
System.out.println ( "4, calculate student achievement Grade Point");
System .out.println ( "5, quit school management system");
System.out.println ( "**************************** ************************************************************ ");
int = n-scan.nextInt ();
Switch (n-) {
Case. 1:
build (); // create a student information
break;
Case 2:
addScore (); // input achievement
break;
Case 3:
updateScore (); // modify achievement
break;
Case 4:
calculateScore (); // calculate grade point
break ;
5 Case:
System.out.println ( "**************************************** ***************** ");
System.out.println (" Thank you for the use of Shijiazhuang Railway Institute of software Engineering student management system version 2019 ");
System.out.println ( "producer: Xu Huaijian");
T = to false;
BREAK;
default:
System.out.println ( "input error, please re-enter");
BREAK;
}
}
}
Private static void build () {
the while (T1) {
SC [NUM] = new new ScoreInformation ();
System.out.println ( "enter the student number, name");
sc [NUM] .setstunumber (scan.next ());
sc [NUM] .setName (Scan. the Next ());
NUM ++;
System.out.println ( "add student information successfully, continue to add 1 enter, enter the completion of the addition 2");
IF (scan.nextInt () == 1) {
T1 = to true;
} the else {
T1 = to false;
}
}
}
Private static void calculateScore () {
Boolean = T3 to false;
System.out.println ( "**************************************************************** *********************************************************** ");
System.out.println (" software Engineering, Shijiazhuang Railway Institute student management system Version 2019 ");
System.out.println (" student test scores to calculate grade point interface ");
System.out.println (" ********************* ************************************** ");
System.out.println (" Please enter student number: ");
System.out.println (" ***********************************************************");
N-scan.next = String ();
for (I = 0; I <NUM; I ++) {
IF (n.equals (SC [I] .getstunumber ())) {
T3 = to true;
BREAK;
}
}
IF (T3 ) {
System.out.println ( "***************************************** **************** ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system version 2019 ");
System.out.println (" student test performance computing grade point interface ");
System.out.println (" *********************************** ************************************************************ ");
System.out.println (" student number: "SC + [I] .getstunumber ());
the System. out.println ( "student name:" + sc [i] .getname ());
System.out.println ( "1, higher math scores for Grade Point:" + jsjd (sc [i] .getmathematicsscore ()));
System.out.println ( "2, enter a college English grades Grade Point Average:" + jsjd (SC [I] .getenglishiscore ()));
System.out.println ( ". 3, the computer network GPA results:" + jsjd (SC [I] .getnetworkscore ()));
System.out.println ( ". 4 database performance grade point: "+ jsjd (sc [i] .getdatabasescore ()));
System.out.println (" 5, software engineering achievement grade point: "+ jsjd (sc [i ] .getsoftwarescore ())) ;
Double SUM, AVER;
SUM = jsjd (SC [I] .getmathematicsscore ()) + jsjd (SC [I] .getenglishiscore ()) + jsjd (SC [I] .getnetworkscore ()) + jsjd (SC [I] .getdatabasescore ()) + jsjd (SC [I] .getsoftwarescore ());
AVER = SUM /. 5;
DecimalFormat DecimalFormat new new DF = ( "00.");
System.out.println ( "your grade point average is:" + df.format (AVER));
IF (AVER> = 2) {
System.out.println ( "message: Your Grade Point has been reached ! graduation requirements ");
}
the else {
System.out.println (" message:! your Grade point does not meet the requirements for graduation ");
}
System.out.println (" return to the main interface if: (Y / N ) ");
System.out.println (" *************************************** ************************************************** ");
String scan.next Q = ();
IF (q.equals (" the Y ")) {
T = to true;
}
the else {
T to false =;
}
}
the else {
System.out.println ( "Science the number does not exist");
}
}
static void updateScore Private () {
Boolean = T3 to false;
System.out.println ( "******************************* **************************** ");
System.out.println (" software Engineering, Shijiazhuang Railway Institute student management system version 2019 ");
System.out.println (" student test scores modification interface ");
System.out.println (" ************************************************************ ********************************** ");
System.out.println (" Please enter the student number: ");
System.out.println (" **************************************** ******************* ");
String = n-scan.next ();
for (I = 0; I <NUM; I ++) {
IF (n.equals ( SC [I] .getstunumber ())) {
T3 = to true;
BREAK;
}
}
if(t3) {
System.out.println ( "******************************************* ************** ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system version 2019 ");
System.out.println (" student test scores entry interface ");
System.out.println (" *************************************** ************************************************** ");
System.out.println (" student number: "SC + [I] .getstunumber ());
System.out.println ( "student name:" + sc [i] .getName ());
System.out.println ( "1, higher mathematics achievement:" + sc [i] .getmathematicsscore ());
System.out.println ( "2, Please enter university English scores: "+ sc [i] .getenglishiscore ());
System.out.println (" 3, computer network performance: "+ sc [i]. getnetworkscore());
System.out.println ( "4, database performance:" + sc [i] .getdatabasescore ());
System.out.println ( "5, software engineering achievement:" + sc [i] .getsoftwarescore ());
System .out.println ( "******************************************** ************* ");
System.out.println (" Please enter the number of subjects to be modified ");
int scan.nextInt P = ();
Switch (P) {
Case. 1:
System.out.println ( "******************************************* ************** ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system version 2019 ");
System.out.println (" student test scores entry interface ");
System.out.println (" *************************************** ****************** ");
System.out.println ( "student number:" + sc [i] .getstunumber ());
System.out.println ( "Student Name:" + sc [i] .getName ());
System.out.println ( "Please enter Higher math modified:");
SC [I] .setmathematicsscore (scan.nextDouble ());
System.out.println ( "********************************************************* ***************************************** ");
BREAK;
Case 2:
the System .out.println ( "******************************************** ************* ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system version 2019 ");
System.out.println (" student test scores input interface ");
System.out.println (" **************************************** ***************** ");
System.out.println ( "student number:" + sc [i] .getstunumber ());
System.out.println ( "Student Name:" + sc [i] .getName ());
System.out.println ( "Please enter the modified College English results:");
sc [i] .setenglishiscore (scan.nextDouble ());
System.out.println ( "**************** ***************************************** ");
BREAK;
Case 3:
System .out.println ( "******************************************** ************* ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system version 2019 ");
System.out.println (" student test scores input interface ");
System.out.println (" **************************************** ***************** ");
System.out.println ( "student number:" + sc [i] .getstunumber ());
System.out.println ( "Student Name:" + sc [i] .getName ());
System.out.println ( "Please enter the modified computer network results:");
SC [I] .setnetworkscore (scan.nextDouble ());
System.out.println ( "********************************************************* ***************************************** ");
BREAK;
Case 4:
System .out.println ( "******************************************** ************* ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system version 2019 ");
System.out.println (" student test scores input interface ");
System.out.println (" **************************************** ***************** ");
System.out.println ( "student number:" + sc [i] .getstunumber ());
System.out.println ( "Student Name:" + sc [i] .getName ());
System.out.println ( "Please enter the database modified score:");
SC [I] .setdatabasescore (scan.nextDouble ());
System.out.println ( "******************************************************** **************************************** ");
BREAK;
Case 5:
System. out.println ( "********************************************* ************ ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system version 2019 ");
System.out.println (" student test scores input interface " );
System.out.println ( "***************************************** **************** ");
System.out.println ( "student number:" + sc [i] .getstunumber ());
System.out.println ( "Student Name:" + sc [i] .getName ());
System.out.println ( "Please enter the modified software engineering achievement:");
sc [i] .setsoftwarescore (scan.nextDouble ());
System.out.println ( "**************** ***************************************** ");
BREAK;
}
the System.out .println ( "student achievement successfully modified");
System.out.println ( "******************************** ************************************************************ ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system 2019 Edition ");
System.out.println ( "student test scores input interface");
System.out.println ( " *********************************************************");
System.out.println ( "student number:" + sc [i] .getstunumber ());
System.out.println ( "Student Name:" + sc [i] .getName ());
System.out.println ( "1, higher mathematics achievement:" + sc [i] .getmathematicsscore ());
System.out.println ( "2, enter a college English achievement:" + sc [i] .getenglishiscore ());
System.out .println ( "3, a computer network performance:" SC + [I] .getnetworkscore ());
System.out.println ( ". 4, the database results:" SC + [I] .getdatabasescore ());
the System.out. println ( "5, software engineering achievement:" + sc [i] .getsoftwarescore ());
System.out.println ( "********************** *********************************** ");
}
The else {
System.out.println ( "Science the number does not exist");
}
}
Static void addScore () {
Boolean = T2 to false;
System.out.println ( "************************************************************ *************************** ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system 2019 Edition " );
System.out.println ( "student test scores entry");
System.out.println ( "*************************** *********************************************************** ");
System.out.println (" enter the student number: ");
System .out.println ( "******************************************** ************* ");
String Number = scan.next ();
for (I = 0; I <NUM; I ++) {
IF (number.equals (SC [I] .getstunumber ())) {
T2 = to true;
BREAK;
}
}
if(t2) {
System.out.println ( "******************************************* ************** ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system version 2019 ");
System.out.println (" student test scores entry interface ");
System.out.println (" *************************************** ************************************************** ");
System.out.println (" student number: "SC + [I] .getstunumber ());
System.out.println ( "student name:" + sc [i] .getName ());
System.out.println ( "Please enter the higher mathematics achievement:");
System.out.println ( "*********** ********************************************** ");
sc [I] .setmathematicsscore (scan.nextDouble ());
System.out.println ( " Please enter university English scores: ");
SC [I] .setenglishiscore (scan.nextDouble ());
System.out.println ( "Please enter the computer network performance");
SC [I] .setnetworkscore (scan.nextDouble ());
System.out.println ( " Please enter the database performance ");
sc [i] .setdatabasescore (scan.nextDouble ());
System.out.println (" Please enter the software engineering achievement ");
sc [i] .setsoftwarescore (scan.nextDouble ());
System.out.println ( "******************************************* ************** ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system version 2019 ");
System.out.println (" student test scores entry interface ");
System.out.println (" *************************************** ****************** ");
System.out.println (" student number: " +sc[i].getstunumber());
System.out.println ( "Student Name:" + sc [i] .getName ());
System.out.println ( "1, higher mathematics achievement:" + sc [i] .getmathematicsscore ());
System.out .println ( "2, enter a college English achievement:" + sc [i] .getenglishiscore ());
System.out.println ( "3, computer network performance:" + sc [i] .getnetworkscore ());
System .out.println ( "4, database performance:" + sc [i] .getdatabasescore ());
System.out.println ( "5, software engineering achievement:" + sc [i] .getsoftwarescore ());
System. out.println ( "********************************************* ************ ");
}
the else {
System.out.println (" Science the number does not exist ");
}
}
Static Double jsjd (Double Score) / * * Conversion GPA / {
double jd;
if(score>=72) {
if(score<75) {
jd=2.3;
}
else if(score<78) {
jd=2.7;
}
else if(score<82) {
jd=3.0;
}
else if(score<85) {
jd=3.3;
}
else if(score<90) {
jd=3.7;
}
else {
jd=4.0;
}
}
else {
if(score>=68) {
jd=2.0;
}
else if(score>=66) {
jd=1.7;
}
else if(score>=64) {
jd=1.5;
}
else if(score>=60) {
d = 1.0;
}
Else {
jd = 0;
}
}
Return JD;
}
}
static int n-, I;
static int NUM = 0;
static Boolean = T to true;
static Boolean = T1 to true;
static ScoreInformation [] = new new SC ScoreInformation [100];
static Scanner Scanner Scan new new = (the System.in );
public static void main (String args []) {
SC [NUM] = new new ScoreInformation ();
the while (T) {
System.out.println ( "*************** ****************************************** ");
System.out.println ( "software Engineering, Shijiazhuang Railway Institute");
System.out.println ( "student management system version 2019");
System.out.println ( "**************** ****************************************** ");
System.out.println ( ' 1, create a student information ");
System.out.println ( "2, student test scores Entry");
System.out.println ( "3, student test scores modification");
System.out.println ( "4, calculate student achievement Grade Point");
System .out.println ( "5, quit school management system");
System.out.println ( "**************************** ************************************************************ ");
int = n-scan.nextInt ();
Switch (n-) {
Case. 1:
build (); // create a student information
break;
Case 2:
addScore (); // input achievement
break;
Case 3:
updateScore (); // modify achievement
break;
Case 4:
calculateScore (); // calculate grade point
break ;
5 Case:
System.out.println ( "**************************************** ***************** ");
System.out.println (" Thank you for the use of Shijiazhuang Railway Institute of software Engineering student management system version 2019 ");
System.out.println ( "producer: Xu Huaijian");
T = to false;
BREAK;
default:
System.out.println ( "input error, please re-enter");
BREAK;
}
}
}
Private static void build () {
the while (T1) {
SC [NUM] = new new ScoreInformation ();
System.out.println ( "enter the student number, name");
sc [NUM] .setstunumber (scan.next ());
sc [NUM] .setName (Scan. the Next ());
NUM ++;
System.out.println ( "add student information successfully, continue to add 1 enter, enter the completion of the addition 2");
IF (scan.nextInt () == 1) {
T1 = to true;
} the else {
T1 = to false;
}
}
}
Private static void calculateScore () {
Boolean = T3 to false;
System.out.println ( "**************************************************************** *********************************************************** ");
System.out.println (" software Engineering, Shijiazhuang Railway Institute student management system Version 2019 ");
System.out.println (" student test scores to calculate grade point interface ");
System.out.println (" ********************* ************************************** ");
System.out.println (" Please enter student number: ");
System.out.println (" ***********************************************************");
N-scan.next = String ();
for (I = 0; I <NUM; I ++) {
IF (n.equals (SC [I] .getstunumber ())) {
T3 = to true;
BREAK;
}
}
IF (T3 ) {
System.out.println ( "***************************************** **************** ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system version 2019 ");
System.out.println (" student test performance computing grade point interface ");
System.out.println (" *********************************** ************************************************************ ");
System.out.println (" student number: "SC + [I] .getstunumber ());
the System. out.println ( "student name:" + sc [i] .getname ());
System.out.println ( "1, higher math scores for Grade Point:" + jsjd (sc [i] .getmathematicsscore ()));
System.out.println ( "2, enter a college English grades Grade Point Average:" + jsjd (SC [I] .getenglishiscore ()));
System.out.println ( ". 3, the computer network GPA results:" + jsjd (SC [I] .getnetworkscore ()));
System.out.println ( ". 4 database performance grade point: "+ jsjd (sc [i] .getdatabasescore ()));
System.out.println (" 5, software engineering achievement grade point: "+ jsjd (sc [i ] .getsoftwarescore ())) ;
Double SUM, AVER;
SUM = jsjd (SC [I] .getmathematicsscore ()) + jsjd (SC [I] .getenglishiscore ()) + jsjd (SC [I] .getnetworkscore ()) + jsjd (SC [I] .getdatabasescore ()) + jsjd (SC [I] .getsoftwarescore ());
AVER = SUM /. 5;
DecimalFormat DecimalFormat new new DF = ( "00.");
System.out.println ( "your grade point average is:" + df.format (AVER));
IF (AVER> = 2) {
System.out.println ( "message: Your Grade Point has been reached ! graduation requirements ");
}
the else {
System.out.println (" message:! your Grade point does not meet the requirements for graduation ");
}
System.out.println (" return to the main interface if: (Y / N ) ");
System.out.println (" *************************************** ************************************************** ");
String scan.next Q = ();
IF (q.equals (" the Y ")) {
T = to true;
}
the else {
T to false =;
}
}
the else {
System.out.println ( "Science the number does not exist");
}
}
static void updateScore Private () {
Boolean = T3 to false;
System.out.println ( "******************************* **************************** ");
System.out.println (" software Engineering, Shijiazhuang Railway Institute student management system version 2019 ");
System.out.println (" student test scores modification interface ");
System.out.println (" ************************************************************ ********************************** ");
System.out.println (" Please enter the student number: ");
System.out.println (" **************************************** ******************* ");
String = n-scan.next ();
for (I = 0; I <NUM; I ++) {
IF (n.equals ( SC [I] .getstunumber ())) {
T3 = to true;
BREAK;
}
}
if(t3) {
System.out.println ( "******************************************* ************** ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system version 2019 ");
System.out.println (" student test scores entry interface ");
System.out.println (" *************************************** ************************************************** ");
System.out.println (" student number: "SC + [I] .getstunumber ());
System.out.println ( "student name:" + sc [i] .getName ());
System.out.println ( "1, higher mathematics achievement:" + sc [i] .getmathematicsscore ());
System.out.println ( "2, Please enter university English scores: "+ sc [i] .getenglishiscore ());
System.out.println (" 3, computer network performance: "+ sc [i]. getnetworkscore());
System.out.println ( "4, database performance:" + sc [i] .getdatabasescore ());
System.out.println ( "5, software engineering achievement:" + sc [i] .getsoftwarescore ());
System .out.println ( "******************************************** ************* ");
System.out.println (" Please enter the number of subjects to be modified ");
int scan.nextInt P = ();
Switch (P) {
Case. 1:
System.out.println ( "******************************************* ************** ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system version 2019 ");
System.out.println (" student test scores entry interface ");
System.out.println (" *************************************** ****************** ");
System.out.println ( "student number:" + sc [i] .getstunumber ());
System.out.println ( "Student Name:" + sc [i] .getName ());
System.out.println ( "Please enter Higher math modified:");
SC [I] .setmathematicsscore (scan.nextDouble ());
System.out.println ( "********************************************************* ***************************************** ");
BREAK;
Case 2:
the System .out.println ( "******************************************** ************* ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system version 2019 ");
System.out.println (" student test scores input interface ");
System.out.println (" **************************************** ***************** ");
System.out.println ( "student number:" + sc [i] .getstunumber ());
System.out.println ( "Student Name:" + sc [i] .getName ());
System.out.println ( "Please enter the modified College English results:");
sc [i] .setenglishiscore (scan.nextDouble ());
System.out.println ( "**************** ***************************************** ");
BREAK;
Case 3:
System .out.println ( "******************************************** ************* ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system version 2019 ");
System.out.println (" student test scores input interface ");
System.out.println (" **************************************** ***************** ");
System.out.println ( "student number:" + sc [i] .getstunumber ());
System.out.println ( "Student Name:" + sc [i] .getName ());
System.out.println ( "Please enter the modified computer network results:");
SC [I] .setnetworkscore (scan.nextDouble ());
System.out.println ( "********************************************************* ***************************************** ");
BREAK;
Case 4:
System .out.println ( "******************************************** ************* ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system version 2019 ");
System.out.println (" student test scores input interface ");
System.out.println (" **************************************** ***************** ");
System.out.println ( "student number:" + sc [i] .getstunumber ());
System.out.println ( "Student Name:" + sc [i] .getName ());
System.out.println ( "Please enter the database modified score:");
SC [I] .setdatabasescore (scan.nextDouble ());
System.out.println ( "******************************************************** **************************************** ");
BREAK;
Case 5:
System. out.println ( "********************************************* ************ ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system version 2019 ");
System.out.println (" student test scores input interface " );
System.out.println ( "***************************************** **************** ");
System.out.println ( "student number:" + sc [i] .getstunumber ());
System.out.println ( "Student Name:" + sc [i] .getName ());
System.out.println ( "Please enter the modified software engineering achievement:");
sc [i] .setsoftwarescore (scan.nextDouble ());
System.out.println ( "**************** ***************************************** ");
BREAK;
}
the System.out .println ( "student achievement successfully modified");
System.out.println ( "******************************** ************************************************************ ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system 2019 Edition ");
System.out.println ( "student test scores input interface");
System.out.println ( " *********************************************************");
System.out.println ( "student number:" + sc [i] .getstunumber ());
System.out.println ( "Student Name:" + sc [i] .getName ());
System.out.println ( "1, higher mathematics achievement:" + sc [i] .getmathematicsscore ());
System.out.println ( "2, enter a college English achievement:" + sc [i] .getenglishiscore ());
System.out .println ( "3, a computer network performance:" SC + [I] .getnetworkscore ());
System.out.println ( ". 4, the database results:" SC + [I] .getdatabasescore ());
the System.out. println ( "5, software engineering achievement:" + sc [i] .getsoftwarescore ());
System.out.println ( "********************** *********************************** ");
}
The else {
System.out.println ( "Science the number does not exist");
}
}
Static void addScore () {
Boolean = T2 to false;
System.out.println ( "************************************************************ *************************** ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system 2019 Edition " );
System.out.println ( "student test scores entry");
System.out.println ( "*************************** *********************************************************** ");
System.out.println (" enter the student number: ");
System .out.println ( "******************************************** ************* ");
String Number = scan.next ();
for (I = 0; I <NUM; I ++) {
IF (number.equals (SC [I] .getstunumber ())) {
T2 = to true;
BREAK;
}
}
if(t2) {
System.out.println ( "******************************************* ************** ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system version 2019 ");
System.out.println (" student test scores entry interface ");
System.out.println (" *************************************** ************************************************** ");
System.out.println (" student number: "SC + [I] .getstunumber ());
System.out.println ( "student name:" + sc [i] .getName ());
System.out.println ( "Please enter the higher mathematics achievement:");
System.out.println ( "*********** ********************************************** ");
sc [I] .setmathematicsscore (scan.nextDouble ());
System.out.println ( " Please enter university English scores: ");
SC [I] .setenglishiscore (scan.nextDouble ());
System.out.println ( "Please enter the computer network performance");
SC [I] .setnetworkscore (scan.nextDouble ());
System.out.println ( " Please enter the database performance ");
sc [i] .setdatabasescore (scan.nextDouble ());
System.out.println (" Please enter the software engineering achievement ");
sc [i] .setsoftwarescore (scan.nextDouble ());
System.out.println ( "******************************************* ************** ");
System.out.println (" Shijiazhuang Railway Institute of software Engineering student management system version 2019 ");
System.out.println (" student test scores entry interface ");
System.out.println (" *************************************** ****************** ");
System.out.println (" student number: " +sc[i].getstunumber());
System.out.println ( "Student Name:" + sc [i] .getName ());
System.out.println ( "1, higher mathematics achievement:" + sc [i] .getmathematicsscore ());
System.out .println ( "2, enter a college English achievement:" + sc [i] .getenglishiscore ());
System.out.println ( "3, computer network performance:" + sc [i] .getnetworkscore ());
System .out.println ( "4, database performance:" + sc [i] .getdatabasescore ());
System.out.println ( "5, software engineering achievement:" + sc [i] .getsoftwarescore ());
System. out.println ( "********************************************* ************ ");
}
the else {
System.out.println (" Science the number does not exist ");
}
}
Static Double jsjd (Double Score) / * * Conversion GPA / {
double jd;
if(score>=72) {
if(score<75) {
jd=2.3;
}
else if(score<78) {
jd=2.7;
}
else if(score<82) {
jd=3.0;
}
else if(score<85) {
jd=3.3;
}
else if(score<90) {
jd=3.7;
}
else {
jd=4.0;
}
}
else {
if(score>=68) {
jd=2.0;
}
else if(score>=66) {
jd=1.7;
}
else if(score>=64) {
jd=1.5;
}
else if(score>=60) {
d = 1.0;
}
Else {
jd = 0;
}
}
Return JD;
}
}
// Xu Huai CCB 1805-120183603
package student;
public class ScoreInformation {
private String stunumber;
private String name;
private double mathematicsscore;
private double englishiscore;
private double networkscore;
private double databasescore;
private double softwarescore;
public void setstunumber(String stunumber) {
this.stunumber=stunumber;
}
public String getstunumber() {
return stunumber;
}
public void setname(String name) {
this.name=name;
}
public String getname() {
return name;
}
public void setmathematicsscore(double mathematicsscore) {
this.mathematicsscore=mathematicsscore;
}
public double getmathematicsscore() {
return mathematicsscore;
}
public void setenglishiscore(double englishiscore) {
this. englishiscore= englishiscore;
}
public double getenglishiscore() {
return englishiscore;
}
public void setnetworkscore(double networkscore) {
this.networkscore=networkscore;
}
public double getnetworkscore() {
return networkscore;
}
public void setdatabasescore(double databasescore) {
this.databasescore=databasescore;
}
public double getdatabasescore() {
return databasescore;
}
public void setsoftwarescore(double softwarescore) {
this.softwarescore=softwarescore;
}
public double getsoftwarescore() {
return softwarescore;
}
}
public class ScoreInformation {
private String stunumber;
private String name;
private double mathematicsscore;
private double englishiscore;
private double networkscore;
private double databasescore;
private double softwarescore;
public void setstunumber(String stunumber) {
this.stunumber=stunumber;
}
public String getstunumber() {
return stunumber;
}
public void setname(String name) {
this.name=name;
}
public String getname() {
return name;
}
public void setmathematicsscore(double mathematicsscore) {
this.mathematicsscore=mathematicsscore;
}
public double getmathematicsscore() {
return mathematicsscore;
}
public void setenglishiscore(double englishiscore) {
this. englishiscore= englishiscore;
}
public double getenglishiscore() {
return englishiscore;
}
public void setnetworkscore(double networkscore) {
this.networkscore=networkscore;
}
public double getnetworkscore() {
return networkscore;
}
public void setdatabasescore(double databasescore) {
this.databasescore=databasescore;
}
public double getdatabasescore() {
return databasescore;
}
public void setsoftwarescore(double softwarescore) {
this.softwarescore=softwarescore;
}
public double getsoftwarescore() {
return softwarescore;
}
}