Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab 5 A+ Due Thursday by 11:59pm Points 25 Submitting a file upload LAB REQUIREMENTS Start Assignment 1. Make sure you have a green check

Lab 5 A+ Due Thursday by 11:59pm Points 25 Submitting a file upload LAB REQUIREMENTS Start Assignment 1. Make sure you have a green check in Grader for this lab. 2. Add comments to the top of your program: first three comment lines must have: 1) your name, 2) COMP 171 and section no., and 3) Lab # 3. Upload your Java program here (.java file). 4. Deadline is soft. Try to stick to the deadline to manage your time. You can submit labs later, without penalty. However, all labs are due no later than the last day of the semester. LAB GRADE: either 25 (complete) or 0 (incomplete) Problem: Compare Loans Description: 5.21 (Financial application: compare loans with various interest rates) Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, with an increment of 1/8. For the calculation, see Canvas > Files > Week 02 > ComputeLoan.java. Use the System.out.printf() method to format the output (See Chapter 4). To output a literal percent (%) symbol, use %% in your format string. Program name: Lab05.java Sample Runs: Loan Amount: 1000 Number of Years: 5 Interest Rate Monthly Payment Total Payment 5.000% 18.87 1132.27 5.125% 18.93 1135.71 5.250% 18.99 1139.16 5.375% 19.04 1142.61 5.500% 19.10 1146.07 5.625% 19.16 1149.53 5.750% 19.22 1153.01 5.875% 19.27 1156.48 6.000% 19.33 1159.97 6.125% 19.39 1163.46 6.250% 19.45 1166.96 6.375% 19.51 1170.46 6.500% 19.57 1173.97 6.625% 19.62 1177.49 6.750% 19.68 1181.01 6.875% 19.74 1184.54 7.000% 19.80 1188.07 7.125% 19.86 1191.61 7.250% 19.92 1195.16 7.375% 19.98 1198.72 7.500% 20.04 1202.28 7.625% 20.10 1205.84 7.750% 20.16 1209.42 7.875% 20.22 1213.00 8.000% 20.28 1216.58 Loan Amount: 971 Number of Years: 11 Interest Rate Monthly Payment Total Payment 5.000% 9.58 1264.35 5.125% 9.64 1272.30 5.250% 9.70 1280.28 5.375% 9.76 1288.29 5.500% 9.82 1296.32 5.625% 9.88 1304.39 5.750% 9.94 1312.48 5.875% 10.00 1320.61 6.000% 10.07 1328.76 6.125% 10.13 1336.95 6.250% 10.19 1345.16 6.375% 10.25 1353.40 6.500% 10.32 1361.67 6.625% 10.38 1369.97 6.750% 10.44 1378.30 6.875% 10.50 1386.65 7.000% 10.57 1395.04 7.125% 10.63 1403.45 7.250% 10.70 1411.89 7.375% 10.76 1420.36 7.500% 10.82 1428.86 7.625% 10.89 1437.39 7.750% 10.95 1445.94 7.875% 11.02 1454.53 8.000% 11.08 1463.14

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles Of Financial And Managerial Accounting

Authors: James Don Edwards, Roger H. Hermanson

1st Edition

0256130000, 978-0256130003

More Books

Students also viewed these Accounting questions

Question

Differentiate the function. r(z) = 2-8 - 21/2 r'(z) =

Answered: 1 week ago