Need help turning this into a C# code
Pseudocode:
- Declare variables
- Accept Input – weeklySales
- Calculate Gross Pay = Weekly Sales * .07
- Calculate Federal Tax = Gross Pay * .18
- Calculate Social Security = Gross Pay * .06
- Calculate Retirement = Gross Pay * .10
- Calculate Total Deductions = Federal Tax + Social Security +
Retirement
- Calculate Total Take Home Pay = Gross Pay – Total Deductions
- Display the following on separate lines and format variables with $ and
decimal
- Total Sales Amount: value of weekly sales
- Gross Pay (.07): value of gross pay
- Federal Tax paid (.18): value of federal tax
- Social Security paid (.06): value of social security
- Retirement contribution (.10): value of retirement
- Total Deductions: value of total deductions
- Take Home Pay: value of take home pay