Open a file named “integers.dat” and keep track of the following information.

the first integer value x

the second integer y

the number of integers less than or equal to x

the number of occurrences of y

the total number of integers

Output the five pieces of information to the console (stdout)

For example, if “integers.dat” contains the integers “21 67 -13 21 1304 0 67 -618” I would expect “21 67 5 2 8” to be the result.

Meeting the above requirements is a bare minimum for the assignment. In order to get full credit, your program should:

have appropriate comments (not too much and not too little)

check for and handle errors, such as a missing file or an empty file

have readable output (beyond the example) and/or error messages

Please submit a single file called “project1.s” to the assignment.

# Category: Assembly Language

## 1105 to binary

*PLEASE SHOW WORK*

Question 1: Perform the following conversions:

1A7F to decimal

63D to binary

1110110110 to decimal

101011101010110 to hexadecimal

1105 to binary

2971 to hexadecimal

Question 2: Show the representation of the following values in 8-bit two’s complement notation:

21

-94

118

-61

Question 3: Determine the decimal value of the following 8-bit two’s complement binary integers:

1101 1001

0101 1101

1001 0000

0001 1010

Question 4: Perform the following additions of 8-bit two’s complement numbers:

0011 1000 + 0101 1100

1100 1101 + 1000 1011

0111 0100 + 1100 0000

1011 0101 + 1001 1001

Question 5: Perform the following subtractions of 8-bit two’s complement numbers:

0111 0100 – 0000 0110

1000 1011 – 1011 0100

0111 0111 – 0011 1010

1101 1011 – 1001 0010

Question 6: Convert the following 32-bit IEEE floating point numbers to decimal:

1100 0101 0111 0110 1110 1100 0000 0000

0100 0110 1111 1000 0000 0000 0000 0000

Question 7: Determine whether the following pairs are equivalent by constructing truth tables:

[(ab’+c)(a’+bd)] and [(a’c+cbd)]

[(b+d)(ad’+c)] and [(abd’+cd)]

Question 8: Using the laws of Boolean algebra, convert the following expressions into simplest form:

(a’+c)’

(wy’+z)’

(a'(bc’+d))’

((w+x’y)(xz+y’))’

Question 9: Draw the circuit that implements each of the following equations:

(BC)’+CD

(WX)’+(XY+YZ)’

AB+(BC’)D’

(WY’+Z)’+W(X+Y’)’

Question 10: Given the following electrical circuit diagram, complete the table below:

ABCXY

000

001

010

011

100

101

110

111

*PLEASE SHOW WORK*

I have computer Architecture assignment due in 2 days. I will upload the required documents once the tutor match process is completed.

I have Computer Architecture assignment due in 2.5 days. I will upload the required documents once the matching process is completed. Thank you so much.

Learning Goal: I’m working on a assembly language writing question and need an explanation and answer to help me learn.

Learning Goal: I’m working on a assembly language writing question and need an explanation and answer to help me learn.

## Result = n1;

1)Implement the following code:

result = 0;

if (input == 12)

result = n1;

else

result = n2;

in the TRN sign language.

Where n1=3 and n2=0

2)Implement the following code in the TRN symbolic language

If (x== n1 && y== n2)

z=x+y?

else

z=x-3;

Assume user input via keyboard

of the contents of X and Y.

## 1)implement the following code:

1)Implement the following code:

result = 0;

if (input == 12)

result = n1;

else

result = n2;

in the TRN sign language.

Where n1=3 and n2=0

2)Implement the following code in the TRN symbolic language

If (x== n1 && y== n2)

z=x+y?

else

z=x-3;

Assume user input via keyboard

of the contents of X and Y.

Learning Goal: I’m working on a assembly language question and need an explanation and answer to help me learn.