Cody

Problem 1330. James Bond film count

Solution 558654

Submitted on 16 Jan 2015 by goc3
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   Pass
%% y=2020; n=bondcount(y); assert(isequal(round(n),27))

ans = 27.0719

2   Pass
%% y=2100; n=bondcount(y); assert(isequal(round(n),52))

ans = 52.0391

3   Pass
%% y=2289; n=bondcount(y); assert(isequal(round(n),100))

ans = 100.1549

4   Pass
%% y=4661; n=bondcount(y); assert(isequal(round(n),500))

ans = 499.8330

Suggested Problems

More from this Author10

Community Treasure Hunt

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

Start Hunting!