Skip to content

Commit

Permalink
KB-5545 | DEV| Assessment | BE | Enhancement in Consumption Logic fo…
Browse files Browse the repository at this point in the history
…r the OptionWeightage Assessment Type. (#625)

1. casting exception handled.
  • Loading branch information
tarentomaheshvakkund authored Jun 25, 2024
1 parent e2ae3bb commit ac41083
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ private Double handleCorrectAnswer(Double sectionMarks, Map<String, Object> ques
private Double handleIncorrectAnswer(int negativeMarksValue,Double sectionMarks, Map<String, Object> questionSetSectionScheme, Map<String, Object> proficiencyMap) {
logger.info("Handling incorrect answer scenario...");
if (negativeMarksValue > 0) {
sectionMarks = sectionMarks - (((double)negativeMarksValue /100 ) * (double) questionSetSectionScheme.get((String)proficiencyMap.get(Constants.QUESTION_LEVEL)));
sectionMarks = sectionMarks - (((double)negativeMarksValue /100 ) * (int) questionSetSectionScheme.get((String)proficiencyMap.get(Constants.QUESTION_LEVEL)));
}
logger.info("Incorrect answer scenario handled successfully.");
return sectionMarks;
Expand Down

0 comments on commit ac41083

Please sign in to comment.