(a) Do operation 75.38 - 18.62 in binary using two's complement.
Use for the fractional part...
(a) Do operation 75.38 - 18.62 in binary using two's complement.
Use for the fractional part 6 bits
(b) Convert the resulting expression to decimal, and say how much
is the absolute error obtained in the operation.
PROBLEM 2
(a) Do operation 75.38 - 18.62 in binary using two's
complement. Use for the 6 bit fractional part
(b) Convert the resulting expression to decimal, and say how
much is the absolute error obtained in the operation
Part 1: Solve the operation 75.38-18.62 in binary
using two's complement. Use 6 bits for the fractionary part.
Part 2:Convert the result to a decimal, and explain
how much is the absolute error obtained in the operation.
(Provide Step by Step process of problem solving in
each part.)
i need to convert decimal to twos complement binary and then add
the binary digits but I am unable to do it. I am only allowed to
use string, can anyone help me out please. i need the code
urgently.
#include
#include
#include
#include
using namespace std;
string reverse(string s)
{
string x = "";
for (long i = s.length() - 1; i >= 0; i--)
{
x += s[i];
}
return x;
}
string twosComplementStringsAddition(string A, string B)
{...
1-How is -89 represented using 8-bit two's compliment? (The
answer should be 8 binary digits).
2-What is 10101100 - 00100100 using 2's compliment arithmetic?
(The answer should be 8 binary digits)
3-Assume we are using the simple model for floating-point
representation as given in the text (the representation uses a
14-bit format, 5 bits for the exponent with a bias of 15, a
normalized mantissa of 8 bits, and a single sign bit for the
number):Show how the computer would...
Convert decimal +47 and +31 to binary, using the
signed-2’s-complement representation and enough digits to
accommodate the numbers. Then perform the binary equivalent of
(+31)+(-47), (-31)+(+47), and (-31)+(-47). Convert the answers back
to decimal and verify that they are correct.