Assignment Help

Hey all, completely new to all of this and really needed some help on my one assignment.

Assignment: Write a program that asks for a loan amount, the number of years, and the annual interest rate. Use a function, CalcPayment to calculate the payment to amortize the loan, then return the value to main.