Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
Need help turning this into a C# code
D W
Oct 23 2012 2:41 PM
2k
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
Reading unread mails from the gmail inbox
Static Constructor in C#