project - I need help writing a Java application to compute and display the number of months needed to pay off credit card debt... using eclipse -


i've started coding , i'm having hard time completing project due in few hours. far, on eclipse, i've got:

import java.util.scanner;

public class creditcardpayoff {

public static void main(string[] args) {      scanner sc = new scanner(system.in);      double principal = sc.nextdouble();     double annualinterestrate = sc.nextdouble();     double monthlypayment = sc.nextdouble();        double  = math.ceil(3.4576);     double b = math.ceil(4);      double c = math.log(12.7);      system.out.println("principal: \t" + principal);     system.out.println("annualinterestrate: \t" + annualinterestrate);     system.out.println("monthlypayment: \t" + monthlypayment); 

you write java application compute , display number of months needed pay off credit card debt. program prompt user following 3 things: principal, amount of money owed on credit card; • annual interest rate; • monthly payment, amount user plans pay credit card company each month. based on these inputs, program compute number of months required pay debt. compute total amount paid credit card company after payments made, total amount of interest paid, , overpayment. number of months needed pay off debt can calculated using following formula...


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -