Exercise 39.4  Calculate Loan Write a JSF page that lets the user enter loan amount, interest rate, and number of years, as shown in Figure 39.30a .  Click the Compute Loan Payment button to compute and display the monthly and total loan payments, as shown in Figure 39.30b.  Use the Loan class given in Listing 10.2, Loan.java, to compute the monthly and total payments.  Use Java.util.Locale to format the output for the correct locale. Be sure to use validation on all input fields. Figure 39.30a Figure 39.30b

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

Exercise 39.4  Calculate Loan

Write a JSF page that lets the user enter loan amount, interest rate, and number of years, as shown in Figure 39.30a .  Click the Compute Loan Payment button to compute and display the monthly and total loan payments, as shown in Figure 39.30b.  Use the Loan class given in Listing 10.2, Loan.java, to compute the monthly and total payments.  Use Java.util.Locale to format the output for the correct locale.

Be sure to use validation on all input fields.

Figure 39.30a

Figure 39.30b

 

Exercise 39.4 Calculate Loan
Write a JSF page that lets the user enter loan amount, interest rate, and number of years, as shown in
Figure 39.30a . Click the Compute Loan Payment button to compute and display the monthly and total
loan payments, as shown in Figure 39.30b. Use the Loan class given in Listing 10.2, Loan.java, to
compute the monthly and total payments. Use Java util Locale to format the output for the correct
locale.
Be sure to use validation on all input fields.
http://localhost:8080/Exercis O - C
e Exercise33_04
Compute Loan Payment
Loan Amount:
150000.00
Ammual Interest Rate 4.56
Number of Years
30
Compute Loan Payment
Reset
Figure 39.30a
e http://localhost:8080/Exercis P - C
Exercise33_04 Result
Loan Amount: $150,000.00
Annual Interest Rate: 4.560
Number of Years: 30
Monthly Payment: $765.38
Total Payment: $275,538.57
Figure 39.30b
Transcribed Image Text:Exercise 39.4 Calculate Loan Write a JSF page that lets the user enter loan amount, interest rate, and number of years, as shown in Figure 39.30a . Click the Compute Loan Payment button to compute and display the monthly and total loan payments, as shown in Figure 39.30b. Use the Loan class given in Listing 10.2, Loan.java, to compute the monthly and total payments. Use Java util Locale to format the output for the correct locale. Be sure to use validation on all input fields. http://localhost:8080/Exercis O - C e Exercise33_04 Compute Loan Payment Loan Amount: 150000.00 Ammual Interest Rate 4.56 Number of Years 30 Compute Loan Payment Reset Figure 39.30a e http://localhost:8080/Exercis P - C Exercise33_04 Result Loan Amount: $150,000.00 Annual Interest Rate: 4.560 Number of Years: 30 Monthly Payment: $765.38 Total Payment: $275,538.57 Figure 39.30b
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Similar 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