Share
Explore BrainMass

recursive algorithm

A. Design a recursive algorithm whose input is a decimal integer and whose output is the binary representation of the input.

b. Design a recursive algorithm that computes the reverse of the result in (a) - that is, converts a binary integer to its decimal equivalent.

Solution Summary

Design a recursive algorithm whose input is a decimal integer and whose output is the binary representation of the input.

$2.19