Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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. image text in transcribed

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

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

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions