Also, shouldn't line 11 be...
Code:
$percent_gone = $credits_earned / $total_credits;
Instead of...
Code:
$percent_gone = $credits_remaining / $total_credits;
...to show what has been completed (percent_gone)? I copied and pasted this snippet and played around with it on my own computer and found that the calculator was giving more of an inversely proportional reading of credits completed to class year ratio. What I mean is, those who had earn more credits were freshmen and sophomores and those who earn less credits were juniors and seniors.
Am I correct or still confused about how everything works? lol
Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum