calculates the percentage of correct questions . concode_field_sep int nCorrect concode_elem_sep int nIncorrect concode_elem_sep int nQuestions concode_field_sep int getnQuestions concode_elem_sep void correct concode_elem_sep void incorrect concode_elem_sep double percentIncorrect concode_elem_sep int questionsAnswered concode_elem_sep void setnQuestions concode_elem_sep int getnCorrect concode_elem_sep double percentComplete concode_elem_sep int getnIncorrect concode_elem_sep int questionsRemaining
double function ( ) { try { return ( ( double ) nCorrect / nQuestions ) * 100 ; } catch ( ArithmeticException loc0 ) { System . out . println ( loc0 . getMessage ( ) ) ; return 0 ; } }