Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Has to be written in C#! Write a Windows Forms application that calculates and p

ID: 3788157 • Letter: H

Question

Has to be written in C#!

Write a Windows Forms application that calculates and prints the take-home pay for a commissioned sales employee. Allow the user to enter values for the name of the employee and the sales amount for the week. Employees receive 7% of the total sales. Federal tax rate is 18%. Retirement contribution is 15%. Social Security tax rate is 9%. Use appropriate constants. Write Input, Display, and Calculate methods. Your final output should display all calculated values,

including the total deductions and all defined constants.

Net Pay Calculator Employee name: Nicolas Boubaki Employees total weekly sales: -212.14 Calculate Take Home Pay Federal tax (8%) Retirement contrbution (5%) Social Securty (94 Total Net Pay: Form 10 Total weekly sales must be a positive dollar amount. Please re-enter.

Explanation / Answer


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;
using ClassLibrary1;


namespace CalculatetakeHomeSalary
{
public partial class Form1 : Form
{
       int salary=0;
       int basicSal=5000;
public Form1()
{
InitializeComponent();
cal.Enabled = false;
}

private void Ext_Click(object sender, EventArgs e)
{
this.Close();
}
      
       private void tb1_TextChanged(object sender, EventArgs e)
{
  
}
       private void tb2_TextChanged(object sender, EventArgs e)
{

  
  
}
       private void tb3_TextChanged(object sender, EventArgs e)
{

  

}
       private void tb4_TextChanged(object sender, EventArgs e)
{

  
}
       private void tb5_TextChanged(object sender, EventArgs e)
{
  
}
      
       public void Input()
       {
           public string name=tb5.Text;
           if(tb1.Text<0)
           {
               MessageBox.Show("Total weekly sales must be a positive dollar amount, Please re-enter");
           }
           else{
           public double monthlySales=4*0.007*Convert.ToInt64(tb1.Text);
           }
       }
      
       public void Calculate()
       {
           public double fedTax=0.018*basicSal;
           public double retContr=0.015*basicSal;
           public double ssTax=0.009*basicSal;
             
       public double monSal=monthlySales - 0.018*basicSal - 0.015*basicSal - 0.009*basicSal;
       }
      
       public void Display()
       {
           tb2.Text = fedTax.ToString();
           tb3.Text= retContr.ToString();
           tb4.Text= ssTax.ToString();
           label9.Text= monSal.ToString();
       }
      
private void CalculatetakeHome(object sender, EventArgs e)
       {
           Display();
       }
         
       private void Clear(object sender, EventArgs e)
       {
           tb1.Text=string.Empty;
           tb2.Text=string.Empty;
           tb3.Text=string.Empty;
               tb4.Text=string.Empty;
               tb5.Text=string.Empty;
       }


  

}
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote