Question: java, like this code but using JOptionPanedialogs Sample output: Lab Exercise 2 Lab Exercise 2 Please enter the loan period (years): Enter the loan amount:

java,

java, like this code but using JOptionPanedialogs Sample output: Lab Exercise 2

Lab Exercise 2 Please enter the loan period (years): Enter the loan

like this code but using JOptionPanedialogs

Sample output: Lab Exercise 2 Lab Exercise 2 Please enter the loan period (years): Enter the loan amount: (S) 2000 Cancel OK Cancel OK Lab Exercise 2 The loan amount is $ Continue? 2000.00, and the loan duration is 4 year(s). Cancel No Lab Exercise 2 interest Rate(%) 5.000 5.125 5.250 5.375 5.500 5.625 5.750 5.875 6.000 6.125 6.250 6.375 6.500 6.625 6.750 6.875 7.000 7.125 7.250 7.375 7.500 7.625 7.750 7.875 8.000 Monthly Payment(s) 46.06 46.17 46.29 46.40 46.51 46.63 46.74 46.86 46.97 47.08 47.20 47.31 47.43 Total Payment(s) 2210.81 2216.25 2221.70 2227.16 2232.62 2238.09 2243.58 2249.07 2254.56 2260.07 2265.58 2271.10 2276.64 2282.17 2287.72 2293.28 2298.84 2304.41 2309.99 2315.58 2321.17 2326.78 2332.39 2338.01 2343.64 47.55 47.66 47.78 47.89 48.01 48.12 48.24 48.36 48.47 48.59 48.71 48.83 OK Expert Q&A + import java.util.Scanner; public class Monthly Payment { public static void main(String args) { Scanner sc = new Scanner(System.in); System.out.print("Please enter the loan amount:"); double amt = sc.nextDouble(); System.out.print("Please enter the loan period (years):"); int yr = sc.nextInt(); System.out.println("\tinterest Rate(%) Monthly Payment ($) Total Payment ($)'); for (double i = 5; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!