Will Web 3.0 Replace Web 2.0?
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
D W
2.2k
12
20.5k
Need help turning this into a C# code
Oct 23 2012 2:41 PM
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
Reply
Answers (
4
)
Reading unread mails from the gmail inbox
Static Constructor in C#