Calculate the minimum payment

Assignment Help JAVA Programming
Reference no: EM131602737

This is JavaScript not Java, however, there was only the option to select Java.

Design and implement a program that will allow us to determine the length of time needed to pay off a credit card balance, as well as the total interest paid.

The program must implement the following functions:

1. displayWelcome
This function should display the welcome message to the user explaining what the program does.

2. calculateMinimumPayment
This function calculates the minimum payment. It should take balance and interest rate as arguments and return the minimum payment.
So the value you display for minimum payment is the value you get from this method. Do not use a literal hardcoded value when you display the minimum payment!

3. displayPayments
This function displays the actual payment schedule. It should take the balance, monthly interest rate and minimum payment as arguments.
Use the 1500, 18% and 2% literal values below.
See the sample execution below:
This program will determine the time to pay off a credit card and the interest paid based on the current balance,
the interest rate, and the monthly payments made.
Balance on your credit card: 1500
Interest Rate: 18
Assuming a minimum payment of 2% of the balance ($20 min)
Your minimum payment would be $ 30.00
PAYOFF SCHEDULE
_________________

Year    Balance     Payment Num     Interest Paid

   1       1,492.50                1                     22.50

            1,484.89                 2                     44.89

            1,477.16                 3                     67.16

            1,469.32                 4                     89.32

                   .                         .                      .

                   .                         .                      .

   7      517.51                     73                  1,207.51

            495.28                     74                 1,215.28

             472.70                    75                  1,222.70

             449.79                    76                  1,229.79

                  .                            .                           .

                  .                            .                           .

    8      227.51                      85                 1,277.51

            200.92                      86                  1,280.92

            173.94                      87                   1,283.94

            146.55                      88                   1,286.55

            118.74                      89                    1,288.74

            90.53                        90                    1,290.53

            61.88                        91                    1,291.88

            32.81                        92                     1,292.81

              3.30                         93                    1,293.30

 

Reference no: EM131602737

Questions Cloud

Is foreign aid worsening our budget deficit : Is America obligated to help poor countries? Is foreign aid worsening our budget deficit?
Define properties of the local linearization : Someone claims that the square root of 1.1 is about 1.05. Without using a calculator, do you think that this estimate is about right?
Barriers to entry facing potential competitors : Consider the barriers to entry facing potential competitors in Forrest's monopoly market. The more contestable a market, the closer it will be to a perfectly.
Take on the role of a supervisor at a juvenile detention : Take on the role of a supervisor at a juvenile detention center. You have been charged with training psychology interns on the salience of risk .
Calculate the minimum payment : Design and implement a program that will allow us to determine the length of time needed to pay off a credit card balance
Labor and capital to make shoes : Alice runs a shoe making factory that utilizes both labor and capital to make shoes. Which of the following would shift the factory's demand for capital and why
At what point do the two normal lines intersect : Find the equations of the tangent lines to the circle x2 + y2 = 25 at the points where x = 4.
Specify the nature of the interrelationships : Analyze the specific requirements that the government must meet in order to declare a federal disaster and provide federal assistance.
Discuss healthcare to the citizens of the united states : the government will take that money and provide healthcare to the citizens of the United States

Reviews

Write a Review

JAVA Programming Questions & Answers

  Behavior of java implementations

Behavior of Java implementations of one of the following sorting algorithms, bubble sort, selection sort, insertion sort, Shell sort, merge sort, quick sort

  What is a java archive

What type of output does the javadoc command generate and how do you view the output and what is a Java archive?

  An array of items that would be used by a small business

Select a task that a program could perform over an array of items that would be used by a small business.

  Write a program that reads customers information

CSE110 - Write a program that reads customers' information from a file, and creates a movie theatre seating with a number of rows and columns specified

  Why does the program end abnormally

Using the Person and PersonRunner classes below, execute the main method in PersonRunner. Why does the program end abnormally?

  Create appropriate get and set methods to retrieve values

Create appropriate get and set methods to retrieve and assign values to these names. For example, getMiddleName(viveAddressBook) should return the middle name of the person Vive.

  Consider a class that could be used to play a game of

consider a class that could be used to play a game of hangman. the class has the following attributesthe secret wordthe

  Write a functions that takes an array of doubles

1. Write a function that is passed a single integer and then calculates the factorial of that number. A factorial is the product of the integer times all of the integers below it stopping at 1. So n!= n*(n-1)*(n-2).......3.2.1

  Program to replace a number with the new one

It will return a value of 42 at the point of call, because the first value of 21 in x gets overwritten by the new value 42

  Determine the classes that are required for the design

Determine the classes that are required for the design (minimum of four classes). All classes need to be given a meaningful name.

  Create a console based non-gui java program

Create a console based, non-GUI Java program using NetBeans Integrated Development Environment (IDE) that displays "Hello world!".Take a screenshot that shows the program's successful compilation and execution.

  Productexception class whose constructor

Create a ProductException class whose constructor receives a String that consists of a product number and price. Save the file as ProductException.java. Create a Product class with two fields, productNum and price. The Product constructor requires va..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd