Skip to content

fpslater/Grade-class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

A Ruby class that implements a letter-based grading

system (A+, A, A-, ...).  The class should be able to naturally

sort by the value of grade (i.e., A+ > A > A-).  The class

should be constructed with a string-value for the grade.

 

a_plus = Grade.new("A+")

a      = Grade.new("A")

a_plus > a       # should return true

[a_plus, a].sort # should return [a, a_plus]

About

# Grade class is a comparable class that assigns a value to the initilized letter grade.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published