Answer:
see below
Step-by-step explanation:
Choose a couple of values for x. Figure out the corresponding values for y. Plot those points and draw a line through them.
Let's choose x=0 and x=4. Then the corresponding y-values are ...
y = 2·0 = 0 . . . . . point (x, y) = (0, 0)
y = 2·4 = 8 . . . . . point (x, y) = (4, 8)
These are graphed below.
Let bitstrings have a maximum length of L bits.
and f(x)=number of one-bits less number of zero-bits.
x=length of bitstring in bits.
Case 1: x=L, all L bits are ones
Then f(x)=L
Case 2: x=L, all L bits are zeroes
Then f(x)=-L
Then
dom f(x)=[0,L]
range f(x) = [-L,L]
-2, -3, -4.
an integer is a number that isn't a fraction. so literally any natural number like 1, 0, or -1. all integers.