Calculates Fractions. School Java Project.