Question: RUBY ONLY Define a method binary_multiple_of_4?(s) that takes a string and returns true if the string represents a binary number that is a multiple of
RUBY ONLY
Define a method binary_multiple_of_4?(s) that takes a string and returns true if the string represents a binary number that is a multiple of 4. NOTE: be sure it returns false if the string is not a valid binary number! Run associated tests via: $ rspec -e '#binary_multiple_of_4?' spec/part2_spec.rb
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
