Sample Run
A screenshot of a sample run of this application is shown on the next page.
Design your application so it looks like the one shown in the screenshot.
Display all currency values with two digits after the decimal point.
Also, because the accuracy of numerical results is the most important part of any application, test your program with the data shown in the screenshot to ensure that your program works correctly.
Enter the name of the item being financed:
Enter the loan amount in dollars:
Enter the annual interest rate (in percentage):
Enter the duration of the loan in years (enter as a whole number):
Monthly payment: $340.98
Programming Assignment: Monthly Payment
Write a .NET MAUI App using C# that calculates the expected monthly payment for a personal loan based on user input.
Input
Your program should solicit the following information from the user.
Calculated Variables
Your program should calculate the following variables.
NOTE: There is no exponentiation operator in C#. To raise a number to a power, we can use the Pow function. For example, the C# statement below will calculate \( (1 + \text{rate})^{\text{number\_of\_payments}} \)
x = Convert.ToDecimal(Math.Pow(Convert.ToDouble(1 + rate), number_of_payments));