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, 2 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
Can anyone hlep me in fixing this c#program? I don't want any ready made answers but need some guidance where exactly i'm wrong?
Â
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace totalSalaryCalculator{class totalsalarycalculator{static void Main(string[] args){string employeename;double saleForWeek;double grossPay;double fedTaxDeduction;double socialSecDeduction;double totalDeductions;double takeHomePay;double retirementContri;double fedTaxDeduction;string name;DisplayInstructions();employeename = GetInformation(name);saleForWeek = GetInformation(totalsales);grossPay = GetGrossPay(saleForWeek);fedTaxDeduction = GetFedTax(grossPay);retirementContri = GetRetContri(grossPay);socialSecDeduction = GetSSdeduction(grossPay);fedTaxDeduction = GetFedTax(grossPay);totalDeductions =GetDeduction(fedTaxDeduction,retirementContri,socialSecDeduction);takeHomePay = GetNetpay(grossPay,totalDeductions);DisplayResults(employeeName, saleForWeek, grossPay, fedTaxDeduction,retirementContri, socialSecDeduction, retirementContri, takeHomePay);}public static void DisplayInstructions(){Console.WriteLine("This Program Calculates the Net Salary" + " ofthe employee for a week\n");Console.WriteLine("How much of the sale's target you were able toachieve for one week\n");Console.WriteLine("you will be asked to enter the total sales for aweek\n");Console.WriteLine("The gross pay will be calculated accordingly\n");Console.WriteLine("Gross pay is seven pecent"+" of the Total salesfor a week\n");Console.WriteLine();Console.WriteLine();Console.WriteLine("The Retirement Contribution will also be deductedfrom the Gross pay\n");Console.WriteLine("The taxes deducted will be Federal Tax,SocialSecurity Tax\n");Console.WriteLine("The Federal tax will be 16 percent of the grosspay\n");Console.WriteLine("The Social Security Tax will be 8 percent of theGross pay\n");Console.WriteLine("The Retirement Contribution Will be 13 percent ofthe Gross pay\n");Console.WriteLine();Console.WriteLine("\nYou will be asked to enter your name");Console.WriteLine("\nAnd You will be asked to enter the total saleyou were able to achieve for a week");Console.WriteLine();