AY2425S1-CS2113-T11-1 / tp

2 stars 5 forks source link

Update tasklist class to have completion rate var #66

Closed Metanyu closed 2 days ago

Metanyu commented 3 days ago

Variable double completion rate (%) is introduced in this PR to keep track of the completion rate for each patient whenever the tasklist is modified (add, delete, mark or unmark). \

The completion rate is calculated by (number of marked tasks / number of tasks). If there is no task in the list, completion rate is 100%.

call getCompletionRate for double value (i.e, 0.5) call completionRatePercentageToString for String value (i.e, 50.00%)