Cody

# Problem 1373. Periodic Table II 101.

Solution 1992556

Submitted on 27 Oct 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
s = 'Cl'; y_correct = 17; assert(isequal(atomicNumber2(s),y_correct))

m = 1×9 cell array {'Cl'} {'Au'} {'Dy'} {'O'} {'Ge'} {'Uut'} {'C'} {'Xe'} {'Hg'} ans = 1×9 logical array 1 0 0 0 0 0 0 0 0

Output argument "y" (and maybe others) not assigned during call to "atomicNumber2". Error in Test1 (line 3) assert(isequal(atomicNumber2(s),y_correct))

2   Fail
s = 'Au'; y_correct = 79; assert(isequal(atomicNumber2(s),y_correct))

m = 1×9 cell array {'Cl'} {'Au'} {'Dy'} {'O'} {'Ge'} {'Uut'} {'C'} {'Xe'} {'Hg'} ans = 1×9 logical array 0 1 0 0 0 0 0 0 0

Output argument "y" (and maybe others) not assigned during call to "atomicNumber2". Error in Test2 (line 3) assert(isequal(atomicNumber2(s),y_correct))

3   Fail
s = 'Dy'; y_correct = 66; assert(isequal(atomicNumber2(s),y_correct))

m = 1×9 cell array {'Cl'} {'Au'} {'Dy'} {'O'} {'Ge'} {'Uut'} {'C'} {'Xe'} {'Hg'} ans = 1×9 logical array 0 0 1 0 0 0 0 0 0

Output argument "y" (and maybe others) not assigned during call to "atomicNumber2". Error in Test3 (line 3) assert(isequal(atomicNumber2(s),y_correct))

4   Fail
s = 'O'; y_correct = 8; assert(isequal(atomicNumber2(s),y_correct))

m = 1×9 cell array {'Cl'} {'Au'} {'Dy'} {'O'} {'Ge'} {'Uut'} {'C'} {'Xe'} {'Hg'} ans = 1×9 logical array 0 0 0 1 0 0 0 0 0

Output argument "y" (and maybe others) not assigned during call to "atomicNumber2". Error in Test4 (line 3) assert(isequal(atomicNumber2(s),y_correct))

5   Fail
s = 'Ge'; y_correct = 32; assert(isequal(atomicNumber2(s),y_correct))

m = 1×9 cell array {'Cl'} {'Au'} {'Dy'} {'O'} {'Ge'} {'Uut'} {'C'} {'Xe'} {'Hg'} ans = 1×9 logical array 0 0 0 0 1 0 0 0 0

Output argument "y" (and maybe others) not assigned during call to "atomicNumber2". Error in Test5 (line 3) assert(isequal(atomicNumber2(s),y_correct))

6   Fail
s = 'Uut'; y_correct = 113; assert(isequal(atomicNumber2(s),y_correct))

m = 1×9 cell array {'Cl'} {'Au'} {'Dy'} {'O'} {'Ge'} {'Uut'} {'C'} {'Xe'} {'Hg'} ans = 1×9 logical array 0 0 0 0 0 1 0 0 0

Output argument "y" (and maybe others) not assigned during call to "atomicNumber2". Error in Test6 (line 3) assert(isequal(atomicNumber2(s),y_correct))

7   Fail
s = 'C'; y_correct = 6; assert(isequal(atomicNumber2(s),y_correct))

m = 1×9 cell array {'Cl'} {'Au'} {'Dy'} {'O'} {'Ge'} {'Uut'} {'C'} {'Xe'} {'Hg'} ans = 1×9 logical array 0 0 0 0 0 0 1 0 0

Output argument "y" (and maybe others) not assigned during call to "atomicNumber2". Error in Test7 (line 3) assert(isequal(atomicNumber2(s),y_correct))

8   Fail
s = 'Xe'; y_correct = 54; assert(isequal(atomicNumber2(s),y_correct))

m = 1×9 cell array {'Cl'} {'Au'} {'Dy'} {'O'} {'Ge'} {'Uut'} {'C'} {'Xe'} {'Hg'} ans = 1×9 logical array 0 0 0 0 0 0 0 1 0

Output argument "y" (and maybe others) not assigned during call to "atomicNumber2". Error in Test8 (line 3) assert(isequal(atomicNumber2(s),y_correct))

9   Fail
s = 'Hg'; y_correct = 80; assert(isequal(atomicNumber2(s),y_correct))

m = 1×9 cell array {'Cl'} {'Au'} {'Dy'} {'O'} {'Ge'} {'Uut'} {'C'} {'Xe'} {'Hg'} ans = 1×9 logical array 0 0 0 0 0 0 0 0 1

Output argument "y" (and maybe others) not assigned during call to "atomicNumber2". Error in Test9 (line 3) assert(isequal(atomicNumber2(s),y_correct))

### Community Treasure Hunt

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

Start Hunting!