title: is there a way to reduce this switch statement?
body: <p>I was going to use an if statement but my assignment requires me to use a switch.</p>
  
  <pre><code>case 1:
  case 2:
  case 3:
  case 4:
  case 5: return income = hours * 5;
  
  case 6:
  case 7: return income = hours * 6;
  
  case 8:
  case 9:
  case 10: return income = hours * 7; ;
  
  case 11:
  case 12:
  case 13:
  case 14:
  case 15: return income = hours * 7; ;
  
  case 16:
  case 17:
  case 18:
  case 19:
  case 20:
  case 21:
  case 22:
  case 23:
  case 24: return income = hours * 10;
  
  default: return 0;
  </code></pre>