scorePerformanceClass function

int scorePerformanceClass(
  1. int? pc
)

Implementation

int scorePerformanceClass(int? pc) {
  if (pc == null) return 0;

  switch (pc) {
    case 1:
      return 10;
    case 2:
      return 25;
    case 3:
      return 40;
    default:
      return 0;
  }
}