Question

Write the binary representation of the C99 variables given below. Example: for uint8_t x = 13,...

Write the binary representation of the C99 variables given below. Example: for uint8_t x = 13, the answer would be answer is: 0000 1101 (base-2)

a. uint8_t x = 31;

b. uint8_t x = 123;

c. uint8_t x = 214;

d. uint8_t x = 233;

e. int8_t x = -22;

f. int8_t x = -97;

g. int8_t x = 123;

h. uint16_t x = 13000;

i. int16_t x = 13000;

j. int16_t x = -13000;

k. uint32_t x = 524288;

l. int32_t x = -40;

m. int32_t x = 40

Homework Answers

Answer #1

a. uint8_t x = 31 => 0001 1111

b. uint8_t x = 123 => 0111 1011

c. uint8_t x = 214 => 1101 0110

d. uint8_t x = 233 => 1110 1001

e. int8_t x = -22; => 1110 1010

f. int8_t x = -97; => 1001 1111

g. int8_t x = 123; => 0111 1011

h. uint16_t x = 13000; => 00011 0010 1100 1000

i. int16_t x = 13000; => 00011 0010 1100 1000

j. int16_t x = -13000; => 1100 1101 0011 1000

k. uint32_t x = 524288; => 0000 0000 0000 1000 0000 0000 0000 0000

l. int32_t x = -40; =>1111 1111 1111 1111 1111 1111 1110 11000

m. int32_t x = 40 0000 0000 0000 0000 0000 0000 0010 1000

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
*******please don't copy and paste and don't use handwriting **** Q1: Using the below given ASCII...
*******please don't copy and paste and don't use handwriting **** Q1: Using the below given ASCII table (lowercase letters) convert the sentence “welcome to cci college” into binary values. a - 97 b - 98 c - 99 d - 100 e - 101 f - 102 g - 103 h - 104 i - 105 j - 106 k - 107 l - 108 m - 109 n - 110 o - 111 p - 112 q - 113...
Write a C++ program to demonstrate thread synchronization. Your main function should first create a file...
Write a C++ program to demonstrate thread synchronization. Your main function should first create a file called synch.txt. Then it will create two separate threads, Thread-A and Thread-B. Both threads will open synch.txt and write to it. Thread-A will write the numbers 1 - 26 twenty times in nested for loops then exit. In other words, print 1 - 26 over and over again on separate lines for at least 20 times. Thread-B will write the letters A - Z...
Consider the observations jointly taken on the binary random variables X and Y given in the...
Consider the observations jointly taken on the binary random variables X and Y given in the “Problem 1” worksheet in the Excel spreadsheet titled “Sheet 1”. 1. Organize the data in a two-way table by counting the number of observations that fall within each of the following cells: {X = 0, Y = 0}, {X = 0, Y = 1}, {X = 1, Y = 0}, and {X = 1, Y = 1}. 2. Use observed cell counts found in...
1. Write the following sets in list form. (For example, {x | x ∈N,1 ≤ x...
1. Write the following sets in list form. (For example, {x | x ∈N,1 ≤ x < 6} would be {1,2,3,4,5}.) (a) {a | a ∈Z,a2 ≤ 1}. (b) {b2 | b ∈Z,−2 ≤ b ≤ 2} (c) {c | c2 −4c−5 = 0}. (d) {d | d ∈R,d2 < 0}. 2. Let S be the set {1,2,{1,3},{2}}. Answer true or false: (a) 1 ∈ S. (b) {2}⊆ S. (c) 3 ∈ S. (d) {1,3}∈ S. (e) {1,2}∈ S (f)...
Suppose the continuous random variables X and Y have joint pdf: fXY (x, y) = (1/2)xy...
Suppose the continuous random variables X and Y have joint pdf: fXY (x, y) = (1/2)xy for 0 < x < 2 and x < y < 2 (a) Find P(X < 1, Y < 1). (b) Use the joint pdf to find P(Y > 1). Be careful setting up your limits of integration. (c) Find the marginal pdf of Y , fY (y). Be sure to state the support. (d) Use the marginal pdf of Y to find P(Y...
Consider the following data for a dependent variable y and two independent variables, x1and x2. x1...
Consider the following data for a dependent variable y and two independent variables, x1and x2. x1 x2 y 30 12 96 47 10 108 25 17 112 51 16 178 40 5 94 51 19 175 74 7 170 36 12 117 59 13 142 76 16 211 The estimated regression equation for these data is ŷ = −17.33 + 2.00x1 + 4.73x2. Here, SST = 15,002.1, SSR = 13,887.5, sb1 = 0.2454,and sb2 = 0.9417. (a)Test for a significant...
1) Describe an example of each of the following that may be found of your kitchen:...
1) Describe an example of each of the following that may be found of your kitchen: Explain how your choice falls into this category, and if there is a chemical name or symbol for it, provide that as well. Provide a photo of your example with your ID card in it. a) a compound b) a heterogeneous mixture c) an element (symbol) Moving to the Caves… Lechuguilla Caves specifically. Check out this picture of crystals of gypsum left behind in...
NWS620S Tutorial 1: Symmetric Encryption - DES Encryption is the translation of data into a secret...
NWS620S Tutorial 1: Symmetric Encryption - DES Encryption is the translation of data into a secret code so that only authorised entities can read it. Encrypting data is considered a very effective way of achieving data security. To access encrypted data, you must have access to a secret key that enables you to decrypt it. Unencrypted data is called plain text; encrypted data is referred to as cipher text. There are two types of encryption: • Symmetric encryption • Asymmetric...
Use the Manufacturing database from “Excel Databases.xls” on Blackboard. Use Excel to develop a multiple regression...
Use the Manufacturing database from “Excel Databases.xls” on Blackboard. Use Excel to develop a multiple regression model to predict Cost of Materials by Number of Employees, New Capital Expenditures, Value Added by Manufacture, and End-of-Year Inventories. Locate the observed value that is in Industrial Group 12 and has 7 employees. Based on the model and the multiple regression output, what is the corresponding residual of this observation? Write your answer as a number, round to 2 decimal places. SIC Code...
ch 6 1: It is generally a good idea to gain an understanding of the "size"...
ch 6 1: It is generally a good idea to gain an understanding of the "size" of units. Consider the objects and calculate the kinetic energy of each one. A ladybug weighing 37.3 mg flies by your head at 3.83 km/h . ×10 J A 7.15 kg bowling ball slides (not rolls) down an alley at 17.5 km/h . J A car weighing 1260 kg moves at a speed of 49.5 km/h. 5: The graph shows the ?-directed force ??...