[code]Program.cs:using System;using System.Collections.Generic;using System.Linq;using System.Windows.Forms;namespace Company{ static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } }}Form.cs: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 Company{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void numericUpDown1_ValueChanged(object sender, EventArgs e) { decimal amount_of_state_sales_tax = numericUpDown1.Value / 25; decimal amount_of_county_sales_tax = numericUpDown1.Value / 50; label2.Text = "The amount of state sales tax: " + amount_of_state_sales_tax; label3.Text = "The amount of county sales tax^ " + amount_of_county_sales_tax; label4.Text = "The total sales tax: " + (amount_of_county_sales_tax + amount_of_state_sales_tax); } }}
[/code]
Comments