Task 9: Rating to Percentage Mapping (1-5 → 0-100%)
Mapping Reference
| Rating | Percentage |
|---|---|
| 1.0 | 20% |
| 2.0 | 40% |
| 3.0 | 60% |
| 4.0 | 80% |
| 4.5 | 90% |
| 5.0 | 100% |
Formula: Percentage = (Rating / 5) × 100
Test Cases
| ID | Scenario | Expected Result | Status |
|---|---|---|---|
| T9-01 | Submit self rating 4.0 on item | Item response shows self_rating_percentage=80 | |
| T9-02 | Submit reviewer rating 4.5 on item | Item response shows manager_rating_percentage=90 | |
| T9-03 | Final score computed as 4.6 | Evaluation response shows final_score_percentage=92 | |
| T9-04 | Open evaluation detail as Employee/Reviewer/HR | Rating and percentage are visible in KPI item table | |
| T9-05 | Open KPI evaluations list | Score column shows rating and percentage together | |
| T9-06 | In-progress self/reviewer entry in UI | Current percentage updates as rating input changes |
Demo Walkthrough
- Submit self-assessment with rating 4.0 → Show percentage displays as 80%
- Submit manager review with rating 4.5 → Show 90% in response
- Open evaluation detail → Show both rating and percentage side by side
- Demo live UI → Change rating input and show percentage updating in real-time