Prg2 16.04.2024 https://ksvi.mff.cuni.cz/~dingle/2023-4/prog_2/notes_7.html/ 2. Cell Class - exceptions, comparators (throw exception, catch exception and define own excetion) 2.1 Define class Cell with atributes: a] float weight, b] float age which are set on creation 2.2 Throw exception mustByPositive on creation with negative value of weight or age; if value is negative set the value on default value; in case weight = 1.0 and in case age = 0.0 - create a new type of exception - mustBePositive 2.3 Create Properties to weight and age that throw exception mustBePositive, when negative value is try to set and keep current value 2.5 Create comparators that compare Cell objects by weight 2.5.1 Overloading < 2.5.2 Overiding CompareTo (Perm: k2.pdf komentar) (Math.Max()) 2.7. Sort Cell objects by: 2.7.1 a] weight 2.7.2 b] age (Collection) 2.10. Create the corresponding test cases 3. Generic sort Function with Comparator