https://jakerpomperada.com/grade-solver-using-joptionpane-in-java/