Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Palagraph GROSS PAY Using Pseudo Code, write the algorithm to calculate gross and net pay based on the following Weekly Hours Worked and Pay rate
Palagraph GROSS PAY Using Pseudo Code, write the algorithm to calculate gross and net pay based on the following Weekly Hours Worked and Pay rate Overtime is paid at time and a half for all hours over 40 hours Calculate the net pay by assessing 5% taxes on all wages from $401 to $1000 and 10% taxes on all wages over $1000 per week. For example: If a person made $400 for a payroll, he would not have any taxes. If a person made $600 for a payroll, she would have to pay $10 in taxes using the following calculation: (600 - 400) * 05 (Even though this person made $600, the first $400 is not taxed). If a person made $1200 for payroll she would have to pay $50 in taxes using the following calculation (30 + ((1200-1000) * 10)). This person will not pay taxes on the first 400, pay 5% ($30.00) on the next $600, and then pay 10% of any income over $1000). Display both gross and net pay. The solution is provided but you should try to write the pseudo code before looking at the solution. Develop the test cases required to test each path of your logic. You must have enough test cases to test each path in your logic. For each test case: Provide the data for the test case Provide what paths the test case will test. (label each path (A, B, C or 1, 2, 3....). Provide the expected Results Provide the results you got when testing it
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started