Question: iin c# visual studio, please post design, and designer code as well. This program will calculate the total amount paid and the number of months

iin c# visual studio, please post design, and designer code as well. iin c# visual studio, please post design, and designer code as well.

This program will calculate the total amount paid and the number of months required to pay off a student loan. The user will enter the amount borrowed (example 1000), the annual interest rate (example 12 for 12% interest on the unpaid balance as a yearly rate), and the monthly payment for each month (example 500). The assumption is that at the end of each month, the bank will use the monthly interest rate (1/12 of the annual interest rate after dividing by 100 to change a percent to a decimal value) to calculate how much to change as interest on the current amount owed. It will then subtract the amount of a payment from the amount owed. It will add the amount paid to the total paid and add 1 to the month counter. Note that if the amount currently owed is less than the usual payment (which is likely to happen for the last payment), the program should reduce the payment to the amount still owed.

The program will use a loop to simulate the monthly interest charges and the monthly payments. Note that if the amount of interest owed for the first month is more than or equal to the usual monthly payment, the loan will never be paid off. In this case, display a message box and avoid executing what would now be an infinite loop.

If the value in a text box is invalid (e.g. missing) then display a message box and avoid executing the loop. If the user tabs to a text box, please select all of the text in the text box.

Student Loan Caiculator

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!