I'd like to implement a program to return a student's pass status in classes in a semester. Say, he has an A in a 3-credit classes, B in a 4-credit classes, and F in a 3-credit classes. How do I calculate the number of credits that student passes?

The condition is that as long as his GPA is above 1.33 (or D-), he passes. In other words, if he gets an A, then he won't pass.
My code right now don't seem to work.

```
    if (gradeValue >= 1.33)
                pass = totalunits;

```