Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
Lee = [32 8 4 64 16 2];
baby= 2;
dad = 64;
family(1) = baby; family(2) = dad;
assert(isequal(BabyDad(Lee),family));
|
2 | Pass |
%%
Jackson= [6, 10, 16, 28];
baby= 2;
dad = 1680;
family(1) = baby; family(2) = dad;
assert(isequal(BabyDad(Jackson),family));
|
3 | Pass |
%%
Smith= [3 17 15 60 2 ];
baby= 1;
dad = 1020;
family(1) = baby; family(2) = dad;
assert(isequal(BabyDad(Smith),family));
|
4 | Pass |
%%
Pitts= [10 6 12 20 ];
baby= 2;
dad = 60;
family(1) = baby; family(2) = dad;
assert(isequal(BabyDad(Pitts),family));
|
Get the area codes from a list of phone numbers
532 Solvers
Program an exclusive OR operation with logical operators
639 Solvers
755 Solvers
232 Solvers
420 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!