Write a program in java to compute the monthly payment for investment for different interest rate. One for 5 years and another for 10 years, the initial rate is 3.75% with an increment of 0.025%
P= r*(pv)/1-(1+r)^-n
P= payment
R= interest rate
Pv =Investment
import java.util.Scanner;
public class investment{
public static void main(String[] args) {
Scanner in1 = new Scanner(System.in);
System.out.print("Payment amount: ");
double pmt = in1.nextDouble();
System.out.print("Investment amount: ");
double investmnt = in1.nextDouble();
System.out.print("Rate of interest: ");
double rate1 = in1.nextDouble();
System.out.print("Number of years: ");
int year1 = in1.nextInt();
rate1 *= 3.75;
System.out.println("Years monthlyValue");
for(int j = 1; j <= year; j++) {
int formatter1 = 5;
if (j >= 5) formatter1 = 10;
System.out.printf(i + "%"+formatter1+".2f\n", monthlyValue(investmnt, rate1/12, j));
}
}
public static double monthlyValue(double P, double monthlyrateofinterest, int years) {
return P= monthlyrateofinterest*(pmt*investmnt)/1-(1+monthlyrateofinterest)pow(-n), years * 12);
}
}
Write a program in java to compute the monthly payment for investment for different interest rate....
In C. Thank you!
Bank
Write a
program to calculate the monthly payment on a loan given the loan
amount, interest rate and the number of years to pay off the loan.
Then add a function to print an amortization schedule for that
loan. Create a class to save the current balance and the rest of
the data as private data. Add member functions to make a payment
and to print the amortization report.
Use the following class header. Class...
The program is in python :)
Write a code program to calculate the mortgage payment. The equation for calculating the mortgage payment is: M = P (1+r)n (1+r)n-1 Where: M is your monthly payment P is your principal r is your monthly interest rate, calculated by dividing your annual interest rate by 12. n is your number of payments (the number of months you will be paying the loan) Example: You have a $100,000 mortgage loan with 6 percent annual...
Write a Java program and Flowchart that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 10%, with an increment of 1/4. ????ℎ????????? = ?????????? × ????ℎ?????????????? / 1 − 1 (1 + ????ℎ??????????????) ????????????? ×12 ????????????? = ????ℎ????????? × ????????????? × 12
1. Class name: FinancialApplication a. Your program will compute the interest on the next monthly payment. To find out the formula to compute the interest, you need to think how you will use the balance and annual interest rate. You have to be very carefully considering how you will find out the monthly interest rate. As you know rate is percentage. For example, if you enter yearly rate as 5%, it means 0.05. And remember this is a yearly rate...
Program Specification: This project involves implementing a Java program that performs a calculation of payments associated with loans. The program shall allow a user to enter the following data: annual interest rate the loan (i.e. , number of years), and the loan amount. A GUI like the one below must be used. Loan Calculator Annual Interest Rate: Number of Years Loan Amount: Monthly Payment Total Payment Calculate When the user presses the calculate button, the monthly payment and total amount...
Compute the monthly payment on a $450,000 loan if the principal and interest are to be repaid in 360 equal monthly installments with the first payment due one month from today. The annual interest rate is 10%.
using Matlab program: Create a loan payment program that can be used for any loan amount such as a home or car loan. The program should ask the user for the input values below, compute the monthly payment, then compute the monthly balance. Display the balance in a table Month Balance 1 $ ##.## 2 $ ##.## 3 $ ##.## . . . etc Use the formula PMT=P*(r(1+r)^n)/((1+r)^n-1) PMT = the monthly payment. P = the principal r = the interest rate per month, which...
c++ and please add tables and everything and make sure program
is complete.
Write a menu driven program, which would compute compound interest and a monthly payment for a loan. The user will be given a choice to display the info on the screen or to a filo Menu will be the following Enter (1) to calculate your loan monthly payment Enter (2) to calculate your loan monthly payment & write to a file Tips: Compound Interest Formula A =...
You wish to buy a car for $12,000 at a 5% annual interest rate,
compounded monthly. The loan will be repaid in 5 years with monthly
payments. What is your monthly payment (calculated with the
equations on the next page)? Compare your answer to that obtained
with the built in function, PMT. Be sure to label all cells
appropriately. (There is no need to create a monthly payment table,
simply use the equations on the next page.)
Loans: where: and,...
PYTHON ONLY PLEASE (Financial application: compare loans with various interest rates) Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, with an increment of 1/8. Sample Run Loan Amount: 10000 Number of Years: 5 Interest Rate Monthly Payment Total Payment 5.000% 188.71 11322.74 5.125% 189.29 11357.13 5.250% 189.86 11391.59 ... 7.875% 202.17 12129.97 8.000% 202.76...