D W

D W

  • NA
  • 12
  • 21.5k

Need help turning this into a C# code

Oct 23 2012 2:41 PM

Need help turning this into a C# code


    Pseudocode:


  1. Declare variables
  2. Accept Input – weeklySales
  3. Calculate Gross Pay = Weekly Sales * .07
  4. Calculate Federal Tax = Gross Pay * .18
  5. Calculate Social Security = Gross Pay * .06
  6. Calculate Retirement = Gross Pay * .10
  7. Calculate Total Deductions = Federal Tax + Social Security +
    Retirement

  8. Calculate Total Take Home Pay = Gross Pay – Total Deductions
  9. Display the following on separate lines and format variables with $ and
    decimal


    1. Total Sales Amount:                    value of weekly sales
    2. Gross Pay (.07):                           value of gross pay
    3. Federal Tax paid (.18):              value of federal tax
    4. Social Security paid (.06):         value of social security
    5. Retirement contribution (.10):   value of retirement
    6. Total Deductions:                         value of total deductions

    7. Take Home Pay:                            value of take home pay


Answers (4)