The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
need to rectify the code.Also i need to add one check if the uerr is inputting the User Name and the total sales in correct format like string and double?
Â
Suwarna HandeStudent Number: n9834311Assessment 1 Part 2(IFN501)Name of the student:Suwarna HandeStudent Number:n9834311Topic:C# Program to Calculate the Salary of an Employee a±er the DeducTonsusingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;namespacetotalSalaryCalculator{classtotalsalarycalculator{staticvoidMain(string[] args){stringemployeeName;doublesaleForWeek;doublegrossPay;doublefedTaxDeduction;doublesocialSecDeduction;doubletotalDeductions;doubletakeHomePay;doubleretirementContri;DisplayInstructions();employeeName = GetInformation();saleForWeek = GetInformation();grossPay = GetGrossPay(saleForWeek);retirementContri = GetRetContri(grossPay);socialSecDeduction = GetSSdeduction(grossPay);fedTaxDeduction = GetFedTax(grossPay);totalDeductions = GetDeduction(fedTaxDeduction, retirementContri, socialSecDeduction);takeHomePay = GetNetPay(grossPay, totalDeductions);DisplayResults(employeeName, saleForWeek, grossPay, fedTaxDeduction,socialSecDeduction, retirementContri, takeHomePay);}publicstaticvoidDisplayInstructions(){Console.WriteLine("This Program Calculates the Net Salary"+" of the employee for aweek\n");Console.WriteLine("How much of the sale's target you were able to achieve for oneweek\n");Console.WriteLine("you will be asked to enter the total sales for a week\n");Console.WriteLine("The gross pay will be calculated accordingly\n");Console.WriteLine("Gross pay is seven pecent"+" of the Total sales for a week\n");
Attachments: