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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

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.
Transcribed Image Text:Number of Years to pay Interest Rate 7% 2 9% 12% 15% 3. 4.
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
Transcribed Image Text: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
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education