Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

2. (15 points) Create a test plan with sample data for the following problem. Yo

ID: 3870787 • Letter: 2

Question

2. (15 points) Create a test plan with sample data for the following problem. You do not have to calculate expected results, but please explain why each test case was chosen as related to the problem. Also include a description of any error checking on the input values that you should do. Hourly employees get paid an hourly rate times the integer hours they work each week. If an employee works over 40 hours, the hours over 40 are paid at twice the rate. If an employee works over 50 hours, an additional bonus of $100 is added to their weekly pay.

Explanation / Answer

Test Cases:

1. Check if hourly rate is greater than zero: The pay rate can not be negative or zero.

2. The hours worked for should not be negative: An employee may be off the work for a week, hence 0 work hours are possible, while work hours can not be negative.

3. Check for the output when emploee work for less than 40 hours
4. Check for the output when emploee work exactly 40 hours
5. Check for the output when emploee work more than 40 hours but less than 100, he should get the double wages for additional hours after 40.
6. Check for the output when emploee work exactly 50 hours, he should get the double wages for addition hours after 40 but should not get any bonus.
7. Check for the output when emploee work more than 50 hours, he should get the double wages for addition hours after 40 as well as bonus of 100$.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote