Assign the value of 1 to variable test if k is in the range –m through +m inclusive. Otherwise, assign a value of zero?(write c++ code).