0% found this document useful (0 votes)
19 views3 pages

Pro 2

This document describes designing a loan calculator interface that takes a loan amount, number of installments, and interest rate from the user. It calculates the monthly installment amount using the pmt() function, validating the user inputs. The user can also select an early payment option via checkbox to reduce the monthly amount by 10% of the loan amount.

Uploaded by

vaje rohan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views3 pages

Pro 2

This document describes designing a loan calculator interface that takes a loan amount, number of installments, and interest rate from the user. It calculates the monthly installment amount using the pmt() function, validating the user inputs. The user can also select an early payment option via checkbox to reduce the monthly amount by 10% of the loan amount.

Uploaded by

vaje rohan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

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 partial class Form1 : Form

public Form1()

InitializeComponent();

private void button1_Click(object sender, EventArgs e)

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;

label4.Text = d.ToString() + " Payable Amount Per Month";

You might also like