Question

In: Computer Science

Salary Raise: At the beginning of every year, you receive a raise on your previous year’s...

Salary Raise: At the beginning of every year, you receive a raise on your previous year’s salary.

Raise = Salary * Rate

Create an application that displays the amount of your annual raises and also your new salaries for the next ten years, using raise rates of 1.5%, 2%, 2.5%, 3%, 3.5%, 4%, 4.5%, 5%.

The input for the salary should come from an input box and should only allow a value between 10,000 and 100,000. Use a loop to validate the input.

Solutions

Expert Solution

Program in Python to calculate the raise in salary:

Raise = Salary * Rate

#Program in Python3

#take input
salary = int(input("Enter Salary: \n"))
#declare initial rate
rate = 1.5
#check if salary range is valid
if salary >= 10000 and salary <= 100000:
    #run loop 10 times for 10 years
    for i in range(10):
        print("Raise for year {} is: {}".format(i+1,salary*(rate/100)))
        #new salary = old salary + range
        salary = salary + salary*(rate/100)
        print("New Salary is: ",salary, "\n")
        #increment rate of raise
        rate = rate +0.5
else:
    print("Salary should be between 10,000 and 100,000")

Program Screenshot:

Please refer to the screenshot of the code to understand the indentation of the code:

Program output:


Related Solutions

In the previous question if you expect o receive the payment at the beginning of the...
In the previous question if you expect o receive the payment at the beginning of the year instead of the end of they year, how much the payments are worth now?
You expect to receive $600 every three months beginning fifteen months from today and expect to...
You expect to receive $600 every three months beginning fifteen months from today and expect to receive these payments forever. If the interest rate is 9% EAR, what is this stream of cash flows worth today? (please slso show the resolution using financial calculator)
You receive $4,000 every three months beginning three months from today for 7 years and an...
You receive $4,000 every three months beginning three months from today for 7 years and an additional $1,200 7 years from today. If the interest rate is 3.0% (EAR), which of the following is closest to the present value (PV) of this stream of cash flows? How should I solve this using the hp10bii+ calculator? If you could show me the steps that would be great!
Your salary next year is expected to be $40,000. Assume you expect your salary to grow...
Your salary next year is expected to be $40,000. Assume you expect your salary to grow at a steady rate of 4% per year for another 27 years. If the appropriate cost of capital (aka discount rate) is 11.2%, what is the PV today of your future salary cash flow stream? For simplicity, assume the salary amounts are at the end of each of the next 27 years. Answer to zero (0) decimal places.
Your salary next year is expected to be $40,000. Assume you expect your salary to grow...
Your salary next year is expected to be $40,000. Assume you expect your salary to grow at a steady rate of 4% per year for another 25 years. If the appropriate cost of capital (aka discount rate) is 9%, what is the PV today of your future salary cashflow stream? [For simplicity, assume the salary amounts are at the end of each of the next 25 years.] Please provide calculations using excel and financial calculator.
You are promised a cash flow every year forever! Next year you will receive $100. After...
You are promised a cash flow every year forever! Next year you will receive $100. After that, the payment will grow by 1% compounded annually. There is no risk associated with the payments. You can invest and earn a risk-free rate of return of 5%. What is the present value of the perpetuity?
Assume the appropriate discount rate is 4%. You will receive a payment every year for the...
Assume the appropriate discount rate is 4%. You will receive a payment every year for the next 17 years, which will grow at 3% annually. The amount of the first payment will be $2,000. What is the current value of this series of payments?
Assume the appropriate discount rate is 7%. You will receive a payment every year for the...
Assume the appropriate discount rate is 7%. You will receive a payment every year for the next 14 years, which will grow at 3% annually. The amount of the first payment will be $5,000. What is the current value of this series of payments?
Assume the appropriate discount rate is 5%. You will receive a payment every year for the...
Assume the appropriate discount rate is 5%. You will receive a payment every year for the next 16 years, which will grow at 4% annually. The amount of the first payment will be $3,000. What is the current value of this series of payments?
Assume the appropriate discount rate is 8%. You will receive a payment every year for the...
Assume the appropriate discount rate is 8%. You will receive a payment every year for the next 13 years, which will grow at 4% annually. The amount of the first payment will be $6,000. What is the current value of this series of payments?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT