JAVA
Write a function that calculates a total amount of money a worker has made when given the initial salary (per month) and months worked. Every year the worker is at the job, their salary increases by $100 per month.

public static int totalPay(int initial_salary, int months){
}

Respuesta :

Answer:

Answer provided in screenshot, not really too happy with my implementation but it works.

Explanation:

Iterate through months, handling logic for every 12 months to get the raise.

Ver imagen rainestormee