Uploaded image for project: 'Contrib: Gradebook2'
  1. Contrib: Gradebook2
  2. GRBK-755

Calculate range values for GradeCalculations.convertPercentageToLetterGrade(...)

    Details

    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: trunk, 1.3.0
    • Fix Version/s: None
    • Component/s: Services
    • Labels:
      None

      Description

      In order to keep the two GradeCalculations.java metods "convertPercentageToLetterGrade(...)" and "convertLetterGradeToPercentage(...)" synchronized w.r.t. the "letterGradeMap" spring bean property, we should calculate the compare values for the convertPercentageToLetterGrade(...) method. Right now these compare values are hard coded in the GradeCalculations.java API implementation.

      Algorithm:

      • Read in letterGradeMap
        • <entry><key><value>A+</value></key><value>98.3333333333</value></entry>
        • <entry><key><value>A</value></key><value>95</value></entry>
        • ...
      • Calculate letter grade midpoints:
        • A+ (98.3333333333) - A (95) = 3.3333333333
        • 3.3333333333 / 2 = 1.6666666666
      • Set range
        • A+ (98.3333333333) - 1.6666666666 = 96.6666666666
          • A+ range = 100 to 96.66666666

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tamsler Thomas Amsler
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: