HOMEWORK 1.pdf - HOMEWORK 1 EXAMPLE 1 public partial class Form1 Form public Form1 InitializeComponent private void button1_Click(object sender

HOMEWORK 1.pdf - HOMEWORK 1 EXAMPLE 1 public partial class...

This preview shows page 1 - 3 out of 3 pages.

HOMEWORK 1 EXAMPLE 1: { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { double Loan, TermInYear, InterestRate, MonthlyPayment, numerator, denominator; Loan = double.Parse(textBox1.Text); TermInYear = double.Parse(textBox2.Text); InterestRate = double.Parse(textBox3.Text); numerator = Loan * (InterestRate / 12); denominator = (1 - Math.Pow(1 + InterestRate / 12, -12 * TermInYear)); MonthlyPayment = (numerator / denominator); textBox4.Text = MonthlyPayment.ToString("c");
Image of page 1
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 3 pages?

  • Fall '10
  • LI
  • Square foot, October 12, Cubic foot, inches2, int feet1

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture