1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Shtirlitz [24]
3 years ago
11

Convert each of the following 8-bit 2's-complement numbers to decimal form. (16 points) a) 01001000 b) 01010101 c) 10101010

Computers and Technology
2 answers:
kherson [118]3 years ago
7 0

Answer:

a) 72

b) 85

c) -86

Explanation:

A 2's-complement numbers is converted to decimal form by multiplying each instance of 1 by 2^(position -1) and adding the sub-results.

a) 01001000 =>

1* 2^(7-1) + 1*2^(4-1) = 64+8 = 72

b) 01010101 =>

1* 2^(7-1) + 1*2^(5-1) + 1*2^(3-1) + 1*2^(1-1) = 64+16+4+1 = 85

c) 10101010

1's complement of the given number by bit inversion is 01010101

2's complement is obtained by adding 1 to the 1's complement.

=01010110

In decimal this is : 1*2^(7-1)+1*2^(5-1)+1*2^(3-1)+1*2^(2-1) = 64+16+4+2 = 86

So the original number is negative of this = -86

Tju [1.3M]3 years ago
4 0

Answer:hsgshh

Explanation:

You might be interested in
A drowsy cat spots a flowerpot that sails first up and then down past an open window. The pot is in view for a total of 0.50 sec
GaryK [48]

Answer:

2.342m

Explanation:

Given

Time = 0.5 s

Height of Window = 2m

Because the pot was in view for a total of 0.5 seconds, we can assume that it took the cat 0.25 seconds to go from the bottom of the window to the top

Using this equation of motion

S = ut - ½gt²

Where s = 2

u = initial velocity = ?

t = 0.25

g = 9.8

So, we have.

2 = u * 0.25 - ½ * 9.8 * 0.25²

2 = 0.25u - 0.30625

2 + 0.30625 = 0.25u

2.30625 = 0.25u

u = 2.30625/0.25

u = 9.225 m/s ------------ the speed at the bottom of the pot

Using

v² = u² + 2gs to calculate the height above the window

Where v = final velocity = 0

u = 9.225

g = 9.8

S = height above the window

So, we have

0² = 9.225² - 2 * 9.8 * s

0 = 85.100625 - 19.6s

-85.100625 = -19.6s

S = -85.100625/19.6

S = 4.342

If 4.342m is the height above the window and the window is 2m high

Then 4.342 - 2 is the distance above the window

4.342 - 2 = 2.342m

6 0
3 years ago
QUESTION 2 Fruit is an enumerated type with values apple, banana, grape, and orange, in that order. Which of the following state
Llana [10]

Answer:

Option A i.e., snack = Fruit.orange;

Explanation:

It is the user-defined data type which is mainly used to initialize the names or titles to integral constants so in the following statement 'Fruit' is the enumerate data type function and its values are the followings given in the statement, 'snack' is the variable of the function 'fruit' that is an enum type, so the initialization is done by the following type in the Java Programming Language.

6 0
3 years ago
Define the missing function. licenseNum is created as: (100000 * customID) + licenseYear. Sample output:
Juliette [100K]

Answer:

#include <iostream>

using namespace std;

class DogLicense{

   public:

       void SetYear(int yearRegistered);

       void CreateLicenseNum(int customID);

       int GetLicenseNum() const;

   private:

       int licenseYear;

       int licenseNum;

};

void DogLicense::SetYear(int yearRegistered) {

   licenseYear = yearRegistered;

}

void DogLicense::CreateLicenseNum(int customID) {

   licenseNum = (100000 * customID) + licenseYear;

}

int DogLicense::GetLicenseNum() const {

   return licenseNum;

}

int main() {

   DogLicense dog1;

   dog1.SetYear(2014);

   dog1.CreateLicenseNum(777);

   cout << "Dog license: " << dog1.GetLicenseNum() << endl;

return 0;

}

Explanation:

You can see the whole code above, but let me explain the fixed function.

void DogLicense::CreateLicenseNum(int customID) {

   licenseNum = (100000 * customID) + licenseYear;

}

The function header is already declared in the class. It takes <em>customID</em> as a parameter. To find out the <em>lisenseNum</em>, we need to apply the given formula <em><u>(100000 * customID) + licenseYear</u></em>.

6 0
4 years ago
Read 2 more answers
How does the team know what to work upon during the iteration? (1 correct answer)
andrezito [222]

Answer:

2

Explanation:

In iteration, the entire team participates. A list of backlog and upcoming tasks is made and plan for the execution of these tasks is decided mutually.

6 0
3 years ago
A data set includes data from 500 random tornadoes. The display from technology available below results from using the tornado l
EastWind [94]

Answer:

The answer is:

H_0:\mu=2.2\\H_1:\mu> 2.2

Explanation:

H_0:\mu=2.2\\H_1:\mu> 2.2

The test value of statistic t= \frac{\bar x-\mu}{\frac{s}{\sqrt{n}}}

                                               =\frac{2.31688-2.2}{0.206915}\\\\=0.56

The value of P = P(T>0.56)

                          =1-P(T<0.56)

                          =1-0.712

                          =0.288

  • Since the P value exceeds its mean value (0.288>0.05), the null assumption must not be rejected.  Don't ignore H0.
  • This assertion, it mean length of the tornado is greater than 2.2 miles also isn't backed by enough evidence.
6 0
3 years ago
Other questions:
  • ________ is the gathering, organizing, sharing, and analyzing of the data and information to which a business has access.
    6·1 answer
  • What is meant by close to 75% of all viruses is contracted through friendly means?
    8·1 answer
  • Define a method named roleOf that takes the name of an actor as an argument and returns that actor's role. If the actor is not i
    11·1 answer
  • If a person was on board a hypersonic airplane what do you think they would be able to see as they look out a window looking in
    13·2 answers
  • What feature is available to add a suggestion in the margin of someone else's document?
    7·1 answer
  • 1.What is aperture priority mode? When might you use this mode on a camera?
    12·1 answer
  • What is the final value for X ?<br><br> x= 1<br><br> x=13<br><br> x= x+3<br><br> x=0
    9·1 answer
  • If $350 is the profit of an initial investment of $1000.00, what is the percentage profit?​
    11·2 answers
  • Susan is troubleshooting a problem with a computer's network cabling. At which layer of the Open Systems Interconnection (OSI) R
    11·1 answer
  • kidede secondary school in Kotido district has been selected to participate in the final continental debating competitions with
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!