Question: COMP 1900-Fall 2018 Lab 2: Variables and Assignment (12 pts) Numbst of People: Individual Dus: By the end of your lab session today, You MUST

 COMP 1900-Fall 2018 Lab 2: Variables and Assignment (12 pts) Numbst
of People: Individual Dus: By the end of your lab session today,

COMP 1900-Fall 2018 Lab 2: Variables and Assignment (12 pts) Numbst of People: Individual Dus: By the end of your lab session today, You MUST submit this before leaving the lab Please refer to the COMP 1900 syllabus for your lab TA. Questions about grading Contact him her first Coding Styls Use camelCase for variable names, use consistent indentation in your code, and include a reasonable amount of comments throughout your code. The TAs may deduct points for poor coding style Within the 1900 folder on your desktop, create a new folder named Lab2 1 (7 pts) When making major purchases such as real estate or vehicles, most people do not pay the entire amount up front. Instead, they finance the purchase by taking out a loan at a certain inlerest rate they agree to pay back the loan in monthly installments over a period of time The formula for computing the amount of a moethly payment is M- P where the variables represent monthly payment (in dollars) P initial amount of loan (in dollars) monthly interest rate (as a decimal), which is the annual interest rate divided by 12 number of months to make payments For example, suppose you're financing a $20,000 Ther/-2000,r. 0.048/ i 2-0.004, and n-5.1 2-60. Substituting those values into the formula yields a monthly payment of M-375.59 car over 5 years, at an annual interest rate of 4.8%. te that the total amount you pay is $375.59 per month over 60 months, which comes out to $22,535.69, Your loan ultimately costs an extra $2,535.69 in interest Higher interest rates and/or longer loan terms will result in paying more over time. (Side note: In general, very financing. If you can't afford to buy it in cash, you probably shouldn't be buying it..) few things are worth Within your Lab2 folder,create a new file named Monthly Payments-java. Write a program that allows the user to enter the following inputs Initial amount of loan, in dollars Annual interest rate, as a percentage (eg, 4.8 for 4.8%) Number of years to pay back the loan . Your program should then calculate and show these three items: The monthly payment

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!