Wesley Corrick

Wesley Corrick

  • NA
  • 9
  • 1.9k

Try Catch and throw exceptions

Jul 24 2019 10:25 PM
I've got a homework assignment that requires me to use three objects and and if the midterms or final exam grades are less than 0 or greater than 100 its supposed to throw and Argument Exception for not being between 0 and 100. When I run my code I have otwo of the three  objects are set to be invalid and the first one is supposed to be true. when its ran the code will only print my first object and the second one that throws the exception and will not print the third one in any form unless the second object is true.
 

Attachment: StudentGrade.zip

Answers (4)