Problem 1247. When can one be the Life Member of the IEEE?
Consult the site http://en.wikipedia.org/wiki/Ieee from where it can be seen that IEEE Members who have reached the age of 65 and whose number of years of membership plus their age in years adds up to at least 100 are recognized as Life Members. Let us write a function which takes the year of birth & year of taking IEEE membership of a person and results in the year when the person can be eligible for being the life member of IEEE. For example, if a person was born in 1940 & took IEEE membership in 1965 then he/she can be eligible in 2005 because at 2005, his age becomes 65 & his number of years of membership(40) plus his age in years(65) adds up to 105(>100). So, the function ieee_lm(1940,1965)=2005
Solution Stats
Problem Comments
-
8 Comments
Show
5 older comments
Sunil Kallur Ramegowda
on 5 Feb 2013
@Aritra : Fix the test suite. you have typed y as 'yy' in your test suite.correct it
Ned Gulley
on 5 Feb 2013
I fixed the obvious typo with the "yy".
Aritra Chatterjee
on 5 Feb 2013
Thanx @Ned for fixing d typo. thnx everyone for their concern
Solution Comments
Show commentsProblem Recent Solvers74
Suggested Problems
-
120 Solvers
-
Back to basics 23 - Triangular matrix
1032 Solvers
-
Matrix which contains the values of an other matrix A at the given locations.
229 Solvers
-
Generate a random matrix A of (1,-1)
336 Solvers
-
Who is the smartest MATLAB programmer?
763 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!