Skip to content

Commit

Permalink
Added percentage feature
Browse files Browse the repository at this point in the history
  • Loading branch information
shivhek25 committed Dec 19, 2017
1 parent bb9f38e commit 4278ea1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified OnlineTest.class
Binary file not shown.
2 changes: 1 addition & 1 deletion OnlineTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ else if(e.getActionCommand().equals("Result"))
current++;
//System.out.println("correct ans="+count);
check();
int a = JOptionPane.showConfirmDialog(this,"Your Score: "+count+" / 10\nP\n Do you wish to see the answer key ?");
int a = JOptionPane.showConfirmDialog(this,"Your Score: "+count+" / 10\nPercentage: "+(count*10)+" %\n Do you wish to see the answer key ?");
if(a==JOptionPane.YES_OPTION)
showAnswerKey();
else
Expand Down

0 comments on commit 4278ea1

Please sign in to comment.