using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading. | Cheap Nursing Papers

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace RogersDBranching

{

  class Program

  {

    static void Main(string[] args)

    {

      Console.WriteLine(” Please enter your username”);

      //this code will allow the user to input their name

      string name = Console.ReadLine();

      //if the name is blank the code will throw a warning

      if (string.IsNullOrWhiteSpace(name)) 

      { throw new ArgumentException(” You must enter your username.”);

      }

      //This code prints the company name and username

      Console.WriteLine(” Mitchelson Software Development Company”);

      Console.WriteLine(” Welcome: ” + name);

      //This code reads the user input from the Employee Class

      Employee employee = new Employee();

      employee.Read();

      //This code prints the information to the console

      Console.WriteLine(” Employee Data”);

      employee.Print();

    }

  }

}

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace RogersDAddingVariables

{

  class Employee

  {

    public string employeeName1, employeeName2, employeeName3;

    public string streetAddress1, streetAddress2, streetAddress3;

    public string city1, city2, city3;

    public string state1, state2, state3;

    public string zip1, zip2, zip3;

    public string department1, department2, department3;

    public double monthlySalary1, monthlySalary2, monthlySalary3;

    public double taxesPaid1, taxesPaid2, taxesPaid3;

    public double netMonthlySalary1, netMonthlySalary2, netMonthlySalary3;

    public double annualSalary1, annualSalary2, annualSalary3;

    public double annualTaxes1, annualTaxes2, annualTaxes3;

    public double annualNetSalary1, annualNetSalary2, annualNetSalary3;

    public void Print()

    { //This code writes the informaiton that has been entered by the user for employee one

      Console.WriteLine(” Employee name: ” + employeeName1);

      Console.WriteLine(” Street address: ” + streetAddress1);

      Console.WriteLine(” City: ” + city1);

      Console.WriteLine(” State: ” + state1);

      Console.WriteLine(” Zip: ” + zip1);

      Console.WriteLine(” Department: ” + department1);

      Console.WriteLine(” Monthly Salary: $” + monthlySalary1);

      Console.WriteLine(” Taxes Paid: $” + taxesPaid1);

      Console.WriteLine(” Net Monthly Salary: $” + netMonthlySalary1);

      Console.WriteLine(” Annual Gross Salary: $” + annualSalary1);

      Console.WriteLine(” Annual Taxes Paid: $ ” + annualTaxes1);

      Console.WriteLine(” Net Annual Salary: $” + annualNetSalary1);

      //This code writes the informaiton that has been entered by the user employee two

      Console.WriteLine(” Employee name: ” + employeeName2);

      Console.WriteLine(” Street address: ” + streetAddress2);

      Console.WriteLine(” City: ” + city2);

      Console.WriteLine(” State: ” + state2);

      Console.WriteLine(” Zip: ” + zip2);

      Console.WriteLine(” Department: ” + department2);

      Console.WriteLine(” Monthly Salary: $” + monthlySalary2);

      Console.WriteLine(” Taxes Paid: $” + taxesPaid2);

      Console.WriteLine(” Net Monthly Salary: $” + netMonthlySalary2);

      Console.WriteLine(” Annual Gross Salary: $” + annualSalary2);

      Console.WriteLine(” Annual Taxes Paid: $ ” + annualTaxes2);

      Console.WriteLine(” Net Annual Salary: $” + annualNetSalary2);

      //This code writes the informaiton that has been entered by the user employee three

      Console.WriteLine(” Employee name: ” + employeeName3);

      Console.WriteLine(” Street address: ” + streetAddress3);

      Console.WriteLine(” City: ” + city3);

      Console.WriteLine(” State: ” + state3);

      Console.WriteLine(” Zip: ” + zip3);

      Console.WriteLine(” Department: ” + department3);

      Console.WriteLine(” Monthly Salary: $” + monthlySalary3);

      Console.WriteLine(” Taxes Paid: $” + taxesPaid3);

      Console.WriteLine(” Net Monthly Salary: $” + netMonthlySalary3);

      Console.WriteLine(” Annual Gross Salary: $” + annualSalary3);

      Console.WriteLine(” Annual Taxes Paid: $ ” + annualTaxes3);

      Console.WriteLine(” Net Annual Salary: $” + annualNetSalary3);

    }

    public void Read()

    {//This code asks for the user to input the employee informtion for employee one

      Console.Write(” Enter employee name:”);

      employeeName1 = Console.ReadLine();

      Console.Write(” Enter street address:”);

      streetAddress1 = Console.ReadLine();

      Console.Write(” Enter City:”);

      city1 = Console.ReadLine();

      Console.Write(” State:”);

      state1 = Console.ReadLine();

      Console.Write(” Zip:”);

      zip1 = Console.ReadLine();

      Console.Write(” Enter employee department:”);

      department1 = Console.ReadLine();

      Console.Write(” Enter Monthly Salary:”);

      monthlySalary1 = double.Parse(Console.ReadLine());

      //This code calculates the taxes paid and the net monthly and annuyal salary of employee one

      taxesPaid1 = monthlySalary1 * .07;

      netMonthlySalary1 = monthlySalary1 – taxesPaid1;

      annualSalary1 = monthlySalary1 * 12;

      annualTaxes1 = taxesPaid1 * 12;

      annualNetSalary1 = netMonthlySalary1 * 12;

      //This code asks for the user to input the employee informtion for employee two

        Console.Write(” Enter employee name:”);

        employeeName2 = Console.ReadLine();

        Console.Write(” Enter street address:”);

        streetAddress2 = Console.ReadLine();

        Console.Write(” Enter City:”);

        city2 = Console.ReadLine();

        Console.Write(” State:”);

        state2 = Console.ReadLine();

        Console.Write(” Zip:”);

        zip2 = Console.ReadLine();

        Console.Write(” Enter employee department:”);

        department2 = Console.ReadLine();

        Console.Write(” Enter Monthly Salary:”);

        monthlySalary2 = double.Parse(Console.ReadLine());

        //This code calculates the taxes paid and the net monthly and annuyal salary of employee two

        taxesPaid2 = monthlySalary2 * .07;

        netMonthlySalary2 = monthlySalary2 – taxesPaid2;

        annualSalary2 = monthlySalary2 * 12;

        annualTaxes2 = taxesPaid2 * 12;

        annualNetSalary2 = netMonthlySalary2 * 12;

      //This code asks for the user to input the employee informtion for employee three

      Console.Write(” Enter employee name:”);

      employeeName3 = Console.ReadLine();

      Console.Write(” Enter street address:”);

      streetAddress3 = Console.ReadLine();

      Console.Write(” Enter City:”);

      city3 = Console.ReadLine();

      Console.Write(” State:”);

      state3 = Console.ReadLine();

      Console.Write(” Zip:”);

      zip3 = Console.ReadLine();

      Console.Write(” Enter employee department:”);

      department3 = Console.ReadLine();

      Console.Write(” Enter Monthly Salary:”);

      monthlySalary3 = double.Parse(Console.ReadLine());

      //This code calculates the taxes paid and the net monthly and annuyal salary of employee three

      taxesPaid3 = monthlySalary3 * .07;

      netMonthlySalary3 = monthlySalary3 – taxesPaid3;

      annualSalary3 = monthlySalary3 * 12;

      annualTaxes3 = taxesPaid3 * 12;

      annualNetSalary3 = netMonthlySalary3 * 12;

    }

    }

  }

  I need to have this code For this week’s assignment, build on the Week Three Individual Assignment, “Branching in C#,” by asking the user to record the software developers’ information in a C# data structure object record. The C# data structure object record must include the type of employee as either W2 or 1099 using the following requirements: 

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp