Question: Please write it in C#. Thank you so much Instructions 1. Create a Loan class . The Loan class should have fields for o Loan

 Please write it in C#. Thank you so much Instructions 1.Create a Loan class . The Loan class should have fields for Please write it in C#. Thank you so much

Instructions 1. Create a Loan class . The Loan class should have fields for o Loan Amount o Years o Annual Interest Rate . The constructor for the class should set the interest rate to 5.0 . The Loan class should have a method that returns the Monthly Payment Monthly Payment: You will need the month interest rate. Divide the annual interest rate by 1200 and use the (double) value as the monthly interest rate Use the following formula to calculate the monthly payment: loanAmountmonthlyInterestRate / (1 (Math.pow(1 (1+ monthlyInterestRate), numofyears 12)) The Loan class should have a method that returns the Total Payment Total Payment: Multiply the monthly payment by 12 number of years to get the total payment. . 2. Create a LoanManager class Maintain an array of Loan obiects o You can hardcode the size of the array at 10 Ask the User for Loan information o Loan Amount o Years Create a Loan object and put it in the array Allow the user to create as many loans as he or she wants using a loop . * After the user has finished entering loans, print a list of loans and display o Loan amount o Total Payment Also, compute and list the total payment for all loans combined. Use the methods you . create in the Loan class to get the loan payment per loan Put your name, class, etc. on Line 1 of ALL classes Remember that you should have tasks distributed across small methods that do one thing. To create field sizes AND give formatting currency instructions, use the following syntax within your code: WriteLine("0.size:C)", variableName)

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!