Pro 2
Pro 2
Design interface and implement functionalities for Loan calculator. Take Amount, No of installmentsand
Rate of interest from the user. Also user can choose Early Pay option through a checkbox.Calculate
installment amount using pmt() function. Do proper validation for inputs taken by the user.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Question_2__Loan_Calculator_
public Form1()
InitializeComponent();
label4.Visible = true;
pmt();
}
private void pmt()
double a, b, c, d;
double e;
a = Int32.Parse(textBox1.Text);
b = Int32.Parse(textBox2.Text);
c = Int32.Parse(textBox3.Text);
d = (a * b) / c;
if (checkBox1.Checked)
e = (a * 10) / 100;
d = d - e;