Unformatted text preview: long. 3. Write an algorithm to convert a negative decimal number into a binary number in 2’s complement form. Assume that the number ranges from +127 to -128 Hint: You already know how to convert a positive decimal number into binary notation. Think about determining sign and inverting bit positions. 4. Implement your algorithm in Ada95. Turn in an electronic copy of your code listing and a hard copy of your code....
View Full Document
This note was uploaded on 01/28/2012 for the course AERO 16.01 taught by Professor Markdrela during the Fall '05 term at MIT.
- Fall '05