Question: In this assignment you will convert an integer representing a character from the ascii character set into it's binary representation ( all ones and zeros

In this assignment you will convert an integer representing a character from the ascii character set into
it's binary representation (all ones and zeros). To do this will will create a class called ToBinary and
inside that class a method called convertToBinaryString. This method has a single parameter which is
the integer to be convered and returns a String. For a technique of converting an integer into a binary
string please see the document Number formats below this assignment. Also a set of unit tests are
provided.
Your solution MUST be recursive
In ascii a character is represented by a single byte
(8bits) the letter B is 01000010 in binary for
convenience we are ommiting any left most zeros.
For the letter B (66) decimal your method should
return "1000010"
 In this assignment you will convert an integer representing a character

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!