Cody

Problem 1658. Simple equation: Annual salary

Solution 2998219

Submitted on 27 Sep 2020 at 16:30
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))

Out of memory. The likely cause is an infinite recursion within the program. Error in ComputeSalary (line 6) fprintf(isequal(ComputeSalary(wage),salary_correct))

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

Out of memory. The likely cause is an infinite recursion within the program. Error in ComputeSalary (line 6) fprintf(isequal(ComputeSalary(wage),salary_correct))

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

Out of memory. The likely cause is an infinite recursion within the program. Error in ComputeSalary (line 6) fprintf(isequal(ComputeSalary(wage),salary_correct))

Suggested Problems

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!