# exercise 4 c

Assignment: Exercise 4
Needs to be completed in Visual Studio
Windows App: Monthly loan payment calculator
Assignment
The objectives of this lab assignment are as follows:

Create fully functioning desktop application
Understand controls, properties, and event-handlers
Accept user input from GUI
Format data for display
Perform financial calculation

Skills Required
To properly complete this assignment you will need to apply the following skills:

Construct Windows desktop GUI application
Convert financial formula to C# code
Validate user-input to ensure entered values are valid
Format numeric results properly as currency
Use of Math.Pow() method
Use of MessageBox.Show() method
Use of int.TryParse() method
Use of double.TryParse() method

Assignment User Story
As a user I want a Windows desktop application will allow me to calculate the monthly payment for a fixed-rate interest loan, such as for a car or for home mortgage.
Assignment Requirements
In this application we are calculating the monthly payment for a fixed interest rate loan. This is a standard financial formula and the results of your work can be checked against a number of online calculators.
In order to calculate a monthly payment, you will need to know the total loan amount requested, the annual interest rate, and the length of the loan (term).

The total amount of the loan requested will be represented by the difference between the purchase price (what it is that you wish to finance) minus the down payment (if any).
The interest rate must be entered as a decimal value such that an entry of 5.00 represents 5%, which is .05.
The term will simply be entered as a number of months for the loan. For example 60 months is 5 years (generally the term for a car loan) while 360 months is 30 years (suitable for a home mortgage).

Formula for Calculating Monthly Payment
There are numerous ways of calculating monthly payment amounts. We will use the following formula:

A is the monthly pa yment amount
i is the monthly interest rate
P is the loan’s total amount (the amount to be financed)
n is the total number of monthly payments

While the application will prompt for the interest as an annual rate, you must convert this to a monthly rate. Entering 5.0 (which should be understood to mean 5% annually) should result in a monthly interest rate of:

.

It is this monthly interest rate, and not the annual rate, that should be substituted for i in the above calculation.
You must ensure that the application you submit meets all technical/grading requirements. Your grade will be based on how well your application follows the application requirements plus the following:

A Windows Forms (desktop) application will be developed.
Ensure that all of the data fields (text boxes) into which the user enters data are validated (required data as well as valid numeric entry).
Required fields include purchase price, down payment amount, annual interest rate, and length of loan.
Each of the required fields must be validated to ensure they are not empty after the user clicks the Calculate button.
Each of the required numeric fields must be validated to ensure correct numeric entry.
If there are errors with respect to violation of either required or numeric inputs the user will be alerted with the MessageBox.Show() method.
There should be two additional fields with their read only properties set to true: Amount to Finance and Monthly Payment.
The Amount to Finance field will automatically be filled with the result of the down payment amount subtracted from the purchase price.
The monthly payment amount will be calculated by this application and will be displayed using the currency format.
Two buttons will be included on this form: Calculate and Close. When the user clicks Calculate, the form’s fields will be validated and, if valid, monthly payment will be computed. The Close button will cause the application to end.

As a final note to the above requirements, because this is a Windows desktop application you must submit a zip of the entire project folder for grading purposes. A desktop application contains multiple files beyond just the code file that must be kept together.
How the application looks and how it presents its information to the user is up to you. But it must meet the minimum requirements noted above.
Further Thoughts
You will want to test the results of your calculation to ensure that your math is accurate. There are many online calculators available to you. One such can be found at the following (link to online calculator here.)
I would not attempt to perform the entire payment calculation in a single line of code. Rather, you should break the calculation up into multiple variables that are then put together for the final result.
For this application the only controls you need to be concerned with are labels, text boxes, and buttons.
Example Output
The example output provided below is simply an example. You do not need to format your output to look like this example. You simply need to ensure that you have met the technical requirements for this application.
Following is example output for this application:
Application with valid inputs and correct calculation:

Application with invalid input (missing entry for Interest Rate):

Application with invalid input (non-numeric entry for Interest Rate):

Assignment Walk-Through

Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount! Use Discount Code “Newclient” for a 15% Discount!NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.

The post exercise 4 c appeared first on Custom Nursing Help.

## Order a similar paper and get 15% discount on your first order with us

98% Success Rate
“Hello, I deliver nursing papers on time following instructions from the client. My primary goal is customer satisfaction. Welcome for plagiarism free papers”
Stern Frea
98% Success Rate
Hi! I am an English Language and Literature graduate; I have written many academic essays, including argumentative essays, research papers, and literary analysis.
Dr. Ishid Elsa
98% Success Rate
"Hi, count on me to deliver quality papers that meet your expectations. I write well researched papers in the fields of nursing and medicine".
Dr. Paul P. Klug
99% Success Rate
"A top writer with proven reliability and experience. I have a 99% success rate, overall rating of 10. Hire me for quality custom written nursing papers. Thank you"

### How Our Essay Writing Service Works

Fill out order details and instructions, then upload any files or additional materials if needed. Then, confirm your order by clicking “Place an Order.”

Your payment is processed by a secure system. We accept Mastercard, Visa, Amex, and Discover. We don’t share any informati.on with third parties

## The Writing Process

You can communicate with your writer. Clarify or track order with our customer support team. Upload all the necessary files for the writer to use.

## Recent Questions

### Implementation of a Progressive Care Unit

Implementation of a Progressive Care Unit

### Implementation of a Progressive Care Unit for Patients with Moderate Injury Severity Admitted to the Emergency Department

Implementation of a Progressive Care Unit for Patients with Moderate Injury Severity Admitted to the Emergency Department

### Intervention Plan Design

Intervention Plan Design

### Problem Statement (PICOT)

Problem Statement (PICOT)

### 6.4 Assignment: Final Capstone Project Paper (Phase 7 of Final Capstone Project)

6.4 Assignment: Final Capstone Project Paper (Phase 7 of Final Capstone Project)