_________________________ EXAMPLE OF OUTPUT: Menu * 1. Binary to Deci * 2. Decin
ID: 3880677 • Letter: #
Question
_________________________
EXAMPLE OF OUTPUT:
Menu * 1. Binary to Deci * 2. Decinal to Binary 3. Add two Binaries * * 4. Signed extension *5. Two's complement * 6. Grade * 7. Quit Enter your choice: 1 Enter a binary string: 1001101 Its decimal value is: -51 (the two's complement of 1001101 is 0110011 which is positive 51. So 1001101 is -51) Menu * 1. Binary to Deci * 2. Decinal to Binary * 3. Add two Binaries * 4. Signed extension 5. Two's complement * 6. Grade * 7. Quit Enter your choice: 2 Enter an integer: -51 Its binary representation is: 1111111111001101 (51 is 0110011. So -51 is 1001101. Use signExplanation / Answer
For the below function you should return a conversion of decimal to binary string decimal_to_binary_signed(int n){ // you implement this one fourth int i,a[100]; for(i=0; n>0; i++) { a[i]=n%2; n= n/2; } coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.