You are on page 1of 1

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 WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)


{
double Hours = double.Parse(textBox1.Text);
double Rate = double.Parse(textBox2.Text);

double total = Hours * Rate;


textBox3.Text = total.ToString();

double deduction = double.Parse(textBox4.Text);


double netpay = total-deduction;
textBox5.Text = netpay.ToString();

}
}
}

You might also like