So I am to determine the base salary for an employee based on an inputed number of years the employee has worked for the company.
I have to do this using switch structures and I am given ranges as follows:
Number of years worked____Base Salary
0 – 5 $ 9,500
6 – 11 $12,700
12 – 17 $15,300
18 – 29 $22,600
>= 30 $26,800
So, how do I do ranges for the cases if I don't want to right case for all of the numbers?
It isn't too much of a hassle with this one, but then I have to figure out commission based on sales and that has ranges like $0-3,999.99 and $16,000-23,999.99.