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

Enhanced Discovering Computers 2017 (Shelly Cashman Series) (MindTap Course List)
1st Edition
ISBN:9781305657458
Author:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Chapter11: Building Solutions: Database, System, And Application Development Tools
Section: Chapter Questions
Problem 23CT
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
Enhanced Discovering Computers 2017 (Shelly Cashm…
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr