Salary
Calculate the annual salary of an employee given the starting Salary (startingSalary), percentage increase per year between 1 and 100 (inc), and how many years of experience they have (years). They only get raises for 10 years. In other words, year=0 would have a salary of zero. Year 1 would be a salary equal to the startingSalary.
Class:
Salary(int startingSalary, int
inc, int years)
Method(s):
public int calculateSalary()
calculateSalary(30000,10,2); should return 33000.
The salary could be calculated by taking startingSalary * (1 + inc/100)
calculateSalary(30000,10,3);
33000 * 1.10 = 36300