Solve exercise 4 from section 7.8. Make sure the caller can tell you not only the array and number of elements, but also how many bits to shift to the right. (See elsewhere on the site for further hints.)

As always, document any procedures you create well!


This assignment is Level 1.5.