Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
income = 0;
tax_correct = 0;
assert(isequal(taxFor(income),tax_correct))
|
2 | Pass |
income = 100;
tax_correct = 10;
assert(isequal(taxFor(income),tax_correct))
|
3 | Pass |
income = 1000;
tax_correct = 100;
assert(isequal(taxFor(income),tax_correct))
|
4 | Pass |
income = 2000;
tax_correct = 200;
assert(isequal(taxFor(income),tax_correct))
|
5 | Pass |
income = 2500;
tax_correct = 300;
assert(isequal(taxFor(income),tax_correct))
|
6 | Pass |
income = 3000;
tax_correct = 400;
assert(isequal(taxFor(income),tax_correct))
|
7 | Pass |
income = 5000;
tax_correct = 1000;
assert(isequal(taxFor(income),tax_correct))
|
8 | Pass |
filetext = fileread('taxFor.m');
assert(isempty(strfind(filetext, 'regexp')),'regexp hacks are forbidden')
|
Increment a number, given its digits
562 Solvers
136 Solvers
Basics: 'Find the eigenvalues of given matrix
323 Solvers
184 Solvers
128 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!