Home > Back-end >  Application of the single subject test scores
Application of the single subject test scores

Time:09-16

CodePudding user response:

Char [] [] answers={{' A ', 'B', 'A', 'C', 'C', 'D', 'C', 'B', 'A', 'D'}, {' D ', 'B', 'A', 'B', 'C', 'A', 'C', 'B', 'A', 'D'}, {' B ', 'D', 'D', 'A', 'C', 'B', 'C', 'B', 'A', 'D'}, {' C ', 'B', 'A', 'D', 'D', 'C', 'C', 'B', 'A', 'D'}, {' A ', 'B', 'D', 'C', 'C', 'D', 'C', 'B', 'A', 'D'}, {' B ', 'B', 'C', 'C', 'C', 'D', 'C', 'B', 'A', 'D'}, {' B ', 'B', 'A', 'C', 'C', 'D', 'C', 'B', 'A', 'D'}, {' C ', 'B', 'C', 'C', 'C', 'D', 'C', 'B', 'A', 'D'}};
Char [] Keys={' D ', 'B', 'D', 'C', 'C', 'D', 'A', 'B', 'A', 'D'};

CodePudding user response:

Char [] [] answers={{' A ', 'B', 'A', 'C', 'C', 'D', 'C', 'B', 'A', 'D'}, {' D ', 'B', 'A', 'B', 'C', 'A', 'C', 'B', 'A', 'D'}, {' B ', 'D', 'D', 'A', 'C', 'B', 'C', 'B', 'A', 'D'}, {' C ', 'B', 'A', 'D', 'D', 'C', 'C', 'B', 'A', 'D'}, {' A ', 'B', 'D', 'C', 'C', 'D', 'C', 'B', 'A', 'D'}, {' B ', 'B', 'C', 'C', 'C', 'D', 'C', 'B', 'A', 'D'}, {' B ', 'B', 'A', 'C', 'C', 'D', 'C', 'B', 'A', 'D'}, {' C ', 'B', 'C', 'C', 'C', 'D', 'C', 'B', 'A', 'D'}};
Char [] Keys={' D ', 'B', 'D', 'C', 'C', 'D', 'A', 'B', 'A', 'D'};

CodePudding user response:

The
refer to the original poster weixin_48469184 response:

Char [] [] answers={{' A ', 'B', 'A', 'C', 'C', 'D', 'C', 'B', 'A', 'D'}, {' D ', 'B', 'A', 'B', 'C', 'A', 'C', 'B', 'A', 'D'}, {' B ', 'D', 'D', 'A', 'C', 'B', 'C', 'B', 'A', 'D'}, {' C ', 'B', 'A', 'D', 'D', 'C', 'C', 'B', 'A', 'D'}, {' A ', 'B', 'D', 'C', 'C', 'D', 'C', 'B', 'A', 'D'}, {' B ', 'B', 'C', 'C', 'C', 'D', 'C', 'B', 'A', 'D'}, {' B ', 'B', 'A', 'C', 'C', 'D', 'C', 'B', 'A', 'D'}, {' C ', 'B', 'C', 'C', 'C', 'D', 'C', 'B', 'A', 'D'}};
Char [] Keys={' D ', 'B', 'D', 'C', 'C', 'D', 'A', 'B', 'A', 'D'};

CodePudding user response:

The
reference 3 floor weixin_48469184 response:
Quote: refer to the original poster weixin_48469184 response:

Char [] [] answers={{' A ', 'B', 'A', 'C', 'C', 'D', 'C', 'B', 'A', 'D'}, {' D ', 'B', 'A', 'B', 'C', 'A', 'C', 'B', 'A', 'D'}, {' B ', 'D', 'D', 'A', 'C', 'B', 'C', 'B', 'A', 'D'}, {' C ', 'B', 'A', 'D', 'D', 'C', 'C', 'B', 'A', 'D'}, {' A ', 'B', 'D', 'C', 'C', 'D', 'C', 'B', 'A', 'D'}, {' B ', 'B', 'C', 'C', 'C', 'D', 'C', 'B', 'A', 'D'}, {' B ', 'B', 'A', 'C', 'C', 'D', 'C', 'B', 'A', 'D'}, {' C ', 'B', 'C', 'C', 'C', 'D', 'C', 'B', 'A', 'D'}};
Char [] Keys={' D ', 'B', 'D', 'C', 'C', 'D', 'A', 'B', 'A', 'D'};

 
//to iterate through all the classmate
for (int i=0; i Int score=0;
//the answer to traverse a classmate start
For (int j=0; J & lt; Answers [I]. Length; J++) {
If (answers [I] [j]==Keys [j]) {
Score++;
}

}
//traverse a single students answer end end
System. The out. Println (" Stu "+ I +" opportunities the correct number: "+ score).
}
  • Related