Question
Beginner in C#. I need the code for this GUI provided. We need to code functions and call them as well. Please don't use Arrays
Beginner in C#. I need the code for this GUI provided. We need to code functions and call them as well. Please don't use Arrays as we have not covered that and please leave comments helping me understand. Please refer to the following:
Need to write a program that calculates the present value for a future investment goal, future value for an investment made today, or monthly payment for a fixed-rate loan.
The formula for each of these values are listed below;
FV= future value PV = present value MP= Monthly Loan Payment IR = yearly or monthly interest rate as a decimal Terms = number of years or months, NP = number of monthly payments LA = loan amount
Remember to convert the interest rate to a decimal percent (IR * .01 or IR/100) and for the monthly payment also convert the interest rate to a monthly value (IR/12 * .01 or IR/12/100)
FV = PV * (1 + IR) ^ Terms Note: Terms = Years
PV = FV / (1 + IR) ^ Terms Note: Terms = Years
MP = LA * (IR*( 1+IR) ^ NP) / ((1 + IR) ^ NP -1) Note: NP = Years * 12
Calculations must be done with a function. Each function must use an argument list.
Caluclate Button- create a function to validate the user entry. If valid perform a calculation function, format result as currency.
Clear button- should clear all data pn the form (entry and result textboxes/labels), focus should be placed in the present value textbox.
Summary button- report the following in a message box to user: current date and time, program name, number of transactions.
I understand a lot of logic just still struggling with putting it together. Please make as simple as possible and please leave good comments with each line of code to help me understand.
Investment and Payment Calculator Clear Summary Exit Name your Investment Compang Investment Value (Future Value) Present Value nterest Rate (APR) Years: investment Value (Present Value) Loan Payment Loan Amount: Future Value Interest Rate (APR Years: nterest Rate (APRJ OR OR Years: Future Value Monthly Payament Present Value: Calculate FV Calculate PV Calculate MP
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started