Cody

Problem 44427. what's my tax amount this year ?

Solution 2097241

Submitted on 18 Jan 2020
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
x = 70000; i=.10; y_correct =7000 assert(isequal(your_fcn_name(x,i),y_correct))

y_correct = 7000

Output argument "tax" (and maybe others) not assigned during call to "your_fcn_name". Error in Test1 (line 4) assert(isequal(your_fcn_name(x,i),y_correct))

2   Fail
x = 80000; i=.15; y_correct =12000; assert(isequal(your_fcn_name(x,i),y_correct))

Output argument "tax" (and maybe others) not assigned during call to "your_fcn_name". Error in Test2 (line 4) assert(isequal(your_fcn_name(x,i),y_correct))

3   Fail
x = 90000; i=.20; y_correct = 18000 assert(isequal(your_fcn_name(x,i),y_correct))

y_correct = 18000

Output argument "tax" (and maybe others) not assigned during call to "your_fcn_name". Error in Test3 (line 4) assert(isequal(your_fcn_name(x,i),y_correct))

4   Fail
x = 100000; i=.30; y_correct = 30000 assert(isequal(your_fcn_name(x,i),y_correct))

y_correct = 30000

Output argument "tax" (and maybe others) not assigned during call to "your_fcn_name". Error in Test4 (line 4) assert(isequal(your_fcn_name(x,i),y_correct))