Create an auto loan calculator java swing program that will provide dialogs to ask the user regarding the price of the car, downpayment and the number of years to pay for the loan. Compute and display the monthly payment of the loan. Assume that the sales tax is 12% and the interest rates depends on the number of years given by the user. Use the folowing formulas for the computation: Tax amount= Car price*sales tax rate Car total cost= car price+ tax amount Borrowed amount = Car total cost- down payment Interest amount= Borrowed amount* interest rate Loan amount= Borrowed amount + interest amount Monthly payment = loan amount/ number of months loan
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Create an auto loan calculator java swing program that will provide dialogs to ask the user regarding the price of the car, downpayment and the number of years to pay for the loan. Compute and display the monthly payment of the loan. Assume that the sales tax is 12% and the interest rates depends on the number of years given by the user.
Use the folowing formulas for the computation:
- Tax amount= Car price*sales tax rate
- Car total cost= car price+ tax amount
- Borrowed amount = Car total cost- down payment
- Interest amount= Borrowed amount* interest rate
- Loan amount= Borrowed amount + interest amount
- Monthly payment = loan amount/ number of months loan
![Number of Years to pay
Interest Rate
7%
2
9%
12%
15%
3.
4.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F3cdae0f7-f9d2-467c-b42e-b327abf2286b%2F6661910d-500b-4d02-9be7-32a3fbe8270d%2F3vjwms_processed.png&w=3840&q=75)
![Output:
Input
Input
Welcome to Car Loan Program!
Enter the down payment price:
Enter the price of the car.
500000
1736234.76
Cancel
OK
Cancel
1st Dialog: Car Price
2nd Dialog: Downpayment Price
No of Yoars
Loan Information
Enter the years of the loan:
LOAN INFORMATION
3
Car Price:
P 1736234.76
P 500000.00
Cancel
OK
Down payment:
No. of Months:
36.0
P 208348.17
P 1944582.93
Borrowed Amount: P1444582.93
P 173349.95
Total Loan amount: P 1617932.88
Monthly Payment: P 44942.58
Tax amount:
3rd Dialog: Loan no. of years
Total cost:
Interest:
OK
4th Dialog: Loan summary](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F3cdae0f7-f9d2-467c-b42e-b327abf2286b%2F6661910d-500b-4d02-9be7-32a3fbe8270d%2Fvta8559_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Enhanced Discovering Computers 2017 (Shelly Cashm…](https://www.bartleby.com/isbn_cover_images/9781305657458/9781305657458_smallCoverImage.gif)
![Enhanced Discovering Computers 2017 (Shelly Cashm…](https://www.bartleby.com/isbn_cover_images/9781305657458/9781305657458_smallCoverImage.gif)
![Oracle 12c: SQL](https://www.bartleby.com/isbn_cover_images/9781305251038/9781305251038_smallCoverImage.gif)
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
![A Guide to SQL](https://www.bartleby.com/isbn_cover_images/9781111527273/9781111527273_smallCoverImage.gif)