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
Westkost [7]
4 years ago
10

Please help to question 16 and 17 please

Computers and Technology
1 answer:
Y_Kistochka [10]4 years ago
5 0
17.incorrect code........................sorry I'm not sure about number 16
You might be interested in
A number of LC-3 instructions have an "evaluate address" step in the instruction cycle, in which a 16-bit address is constructed
hjlf

Answer: you want to list all LC structers

Explanation:

4 0
4 years ago
g Define a function called most_frequent_letter which takes no arguments. This function will return a dictionary which will have
skad [1K]

Answer:

def most_frequent_letter():

   file = open("words","r")

   dWords = {}

   for line in file:

       line = line.rstrip()

       words = line.split(" ")

       for word in words:

           counts = {}

           for c in word:

               counts[c] = counts.get(c, 0) + 1

           dWords[word] = max(counts, key=counts.get)

   return dWords

print(most_frequent_letter())

Explanation:

the file used was words in txt format and its contents are as follows:

hello aamir jan khan

parallelogram abdullah

anaconda ali

pycharm notebook

3 0
3 years ago
What is the decimal number of binary number 1101011 if the binaryis represented as a(n)
Kruka [31]

Answer:

a. Unsigned integer  107

b. Signed magnitude integer  -43

c. One’s complement integer  -20

d. Two’s complement integer  21

e. ASCII character k

Explanation:

a) For unsigned integer,

   We put this value in representation of binary and put binary number in it.

   we will place 1, 2, 4, 8, 16, 32, 64, 128 ...(powers of two)

                         64  32  16  8  4  2  1

                           <u>1     1    0   1   0   1   1</u>        

The positions at 1 is present,we will add those numbers.In this                (64+32+8+2+1) =107 is there.

So,107 will be the representation.

b)For signed magnitude integer,

  The representation is just the same,but as signed integers the first bit represent the negative number.

                         64  32  16  8  4  2  1

                           <u>1     1    0   1   0   1   1</u>    

The first bit is for Negative(-),then we will add other number where 1 is present.In this (32+8+2+1)=43.We will add (-) due to signed integers.

So,-43 will be the representation.

c) For One's complement integer,

We will compliment the bits of binary number.At the place of 1 ,place 0 and at the place of 0,place 1.

                             <u>1     1    0   1   0   1   1</u>    

    Compliment   <u> 0   0    1   0  1   0   0</u>    

Then,We put this value in representation of binary and put binary number in it, we will place 1, 2, 4, 8, 16, 32, 64, 128 ...(powers of two)                

                         64  32  16  8  4  2  1

                          <u> 0   0    1   0  1   0   0</u>  

The positions at 1 is present,we will add those numbers.In this (16+8)=20    we will put negative at the starting because of the compliment

So, -20 will be the representation.

d)For Two's complement integer,

After compliment of bits At the place of 1 ,place 0 and at the place of 0,place 1.Then,we add 1 bit to the Least significant bit(Lsb).

                             <u>1     1    0   1   0   1   1</u>    

   Compliment     <u> 0   0    1   0  1   0   0</u>    

 Add 1 to Lsb       <u> 0   0    1   0  1   0   0</u>

                                                       +  <u> 1</u>

   Number           <u> 0   0    1   0  1   0   1</u>

Then,We put this value in representation of binary and put binary number in it, we will place 1, 2, 4, 8, 16, 32, 64, 128 ...(powers of two)                

                         64  32  16  8  4  2  1

                          <u> 0   0    1   0  1   0   1</u>  

The positions at 1 is present,we will add those numbers.In this (16+8+1)=21

So,21 will be the representation.

e. For ASCII character,

First,convert it into decimal

  We multiply bits with 2^n,from ascending numbers to 0 to (n-1),and add them

           =   1 * 2^6 + 1*2^5 + 0* 2^4 + 1*2^3 + 0* 2^2 + 1*2^1 + 1* 2^0  

              =   64+32+8+2+1

                =  107

Then,we check in Ascii table 107 decimal number's position ,k is there.

So,k will be the representation.

8 0
3 years ago
You need to store product quantities, and you want to minimize the amount of storage space that is used. Which data type should
Inga [223]

Answer:

win-RAR or other kind of compactor

Explanation:

Also you may use Cloud or Dropbox

7 0
3 years ago
Why would amazon want to use driverless delivery trucks with 3d printers​ installed?
castortr0y [4]
Maybe so they would have to pay less workers and for the printers, I have absolutely no idea on that. Lol
3 0
3 years ago
Other questions:
  • Compare and contrast the various options that exist for acquiring software.
    12·1 answer
  • _______________ bytes of storage are needed to represent the name "sarah." two three five ten
    7·1 answer
  • It is important to ____ the line in the code editing window in the exact location where you want to insert a code snippet to pro
    10·1 answer
  • The rules of thumb designers use when creating a wireframe page
    8·1 answer
  • Explain briefly the purpose of the Computer Management Console in Microsoft Windows.
    12·1 answer
  • True/False - According to CP-14 Sale of Modular Homes, a licensee who sells land and a modular home to be affixed to the land, t
    11·1 answer
  • You are dropping your friend back home after a night at the movies. From the car, she turns on the indoor lights in her home usi
    9·1 answer
  • Write a Boolean expression that tests if the value stored in the variable num1 is equal to the value stored in the variable num2
    10·1 answer
  • Python 4.5 code practice
    12·1 answer
  • 2
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!