Cody

Problem 1271. THE CALCULATOR OF LOVE

Solution 2193403

Submitted on 5 Apr 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
assert(love_calculator('Jay-Z','Beyonce')==5)

name = 97 98 99 101 106 110 111 121 122

Output argument "score" (and maybe others) not assigned during call to "love_calculator". Error in Test1 (line 1) assert(love_calculator('Jay-Z','Beyonce')==5)

2   Fail
assert(love_calculator('Dr. Dre','Eminem')==47)

name = 100 101 105 109 110 114

Output argument "score" (and maybe others) not assigned during call to "love_calculator". Error in Test2 (line 1) assert(love_calculator('Dr. Dre','Eminem')==47)

3   Fail
assert(love_calculator('Angelina Jolie','Brad Pitt')==69)

name = 97 98 100 101 103 105 106 108 110 111 112 114 116

Output argument "score" (and maybe others) not assigned during call to "love_calculator". Error in Test3 (line 1) assert(love_calculator('Angelina Jolie','Brad Pitt')==69)

4   Fail
assert(love_calculator('Jennifer Aniston','Brad Pitt')==75)

name = 97 98 100 101 102 105 106 110 111 112 114 115 116

Output argument "score" (and maybe others) not assigned during call to "love_calculator". Error in Test4 (line 1) assert(love_calculator('Jennifer Aniston','Brad Pitt')==75)

5   Fail
assert(love_calculator('God','Satan')==82)

name = 97 100 103 110 111 115 116

Output argument "score" (and maybe others) not assigned during call to "love_calculator". Error in Test5 (line 1) assert(love_calculator('God','Satan')==82)

6   Fail
assert(love_calculator('Your Mom','Your Dad')==5)

name = 97 100 109 111 114 117 121

Output argument "score" (and maybe others) not assigned during call to "love_calculator". Error in Test6 (line 1) assert(love_calculator('Your Mom','Your Dad')==5)

7   Fail
assert(love_calculator('@bmtran','MATLAB')==66)

name = 97 98 108 109 110 114 116

Output argument "score" (and maybe others) not assigned during call to "love_calculator". Error in Test7 (line 1) assert(love_calculator('@bmtran','MATLAB')==66)

Suggested Problems

More from this Author56

Community Treasure Hunt

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

Start Hunting!