about | help | code help+videos | done | prefs |
apcsaPrimitivesLuckySeven
Given a double which may be large both before or after the decimal point, return true if the value contains a 7 anywhere when it is written in base 10 (the default when printing a double value). Precondition: input will not be a special double value. HINT: think of this more as a String problem.apcsaPrimitivesLuckySeven(7.0) → true apcsaPrimitivesLuckySeven(5.33523) → false apcsaPrimitivesLuckySeven(-13636.0230567) → true ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy