Cody

Solution 1831753

Submitted on 30 May 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
wage = 10; salary_correct = wage * 40 * 50; assert(isequal(ComputeSalary(wage),salary_correct))

hours = 40 no_week_year = 50 weekly_salary = 400 annual_salary = 20000

Assertion failed.

2   Fail
wage = 30; salary_correct = wage * 40 * 50; assert(isequal(ComputeSalary(wage),salary_correct))

hours = 40 no_week_year = 50 weekly_salary = 1200 annual_salary = 60000

Assertion failed.

3   Fail
wage = 12.50; salary_correct = wage * 40 * 50; assert(isequal(ComputeSalary(wage),salary_correct))

hours = 40 no_week_year = 50 weekly_salary = 500 annual_salary = 25000

Assertion failed.

Suggested Problems