Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Table 44. T=0 0 0 0 1 1 0 1 0 0 0 1 1 1 0 0 0 0 0 0 0 po) 0

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Table 44. T=0 0 0 0 1 1 0 1 0 0 0 1 1 1 0 0 0 0 0 0 0 po) 0 0 0 0 0 0 - 0 Counter value to v Code 5: int V[0] = 10; // Assigning int co_Binary [4]; for (int n=0; 024; n++) 11 This is an algorithm // used to find the Binary { co_Binary end - ufo) 22; "a Representation 3 VOJ = V(0)/2; // co-Einary Co) = 104.2 = 0 V(0) = 10/2 = 5 1/ Co-Binary C3 - 5/2 = 1 Il V[0] 572 - 2 1/ Co-Birany (27 279.0 V[0] =2/ 21 160.Binary (s)-172-1 VOJ - Y2 - 0 17.: Binary Representation of 10 is 1010 Shift 1. Now it is time to shift the values of w(n), in table 44, to the right by one place. Notice that you must fill the leftmost, or first value, of w(n) appropriately. Complete table 47. Is there a link between the value that must be entered in the first value of w(n) and the last value? Write your observation below. Table 47. T=1 s(n) w(n) 24 of 35 Coding 4. In this step a new counter, Cl, and its binary equivalent, int C1_Binary(4), will be added at the beginning of the Code 5 after the lines int CO and int CO_Binary[4). Add variable C1 and initialize it in the same way that CO has been added. Write your modified code in the space provided for Code 6. Code 6. Coding 5. Before beginning with the new loop to compute the dot product of table 47, it is important to modify the value of C1 with the respect to the value derived from second element of vector CO_Binary, i.e. CO_Binary[1]. Again knowing that binary values can be either 0 or 1, then it is easy to not increment or increment C1 by one respectively. Modify Code 6 to either increment or not the value of C1 with respect to the value of CO_Binary found at the end of code 6. Make sure to use a conditional IF statement. Write your code in the space provided for Code 7. Code 7. Table 44. T=0 0 0 0 1 1 0 1 0 0 0 1 1 1 0 0 0 0 0 0 0 po) 0 0 0 0 0 0 - 0 Counter value to v Code 5: int V[0] = 10; // Assigning int co_Binary [4]; for (int n=0; 024; n++) 11 This is an algorithm // used to find the Binary { co_Binary end - ufo) 22; "a Representation 3 VOJ = V(0)/2; // co-Einary Co) = 104.2 = 0 V(0) = 10/2 = 5 1/ Co-Binary C3 - 5/2 = 1 Il V[0] 572 - 2 1/ Co-Birany (27 279.0 V[0] =2/ 21 160.Binary (s)-172-1 VOJ - Y2 - 0 17.: Binary Representation of 10 is 1010 Shift 1. Now it is time to shift the values of w(n), in table 44, to the right by one place. Notice that you must fill the leftmost, or first value, of w(n) appropriately. Complete table 47. Is there a link between the value that must be entered in the first value of w(n) and the last value? Write your observation below. Table 47. T=1 s(n) w(n) 24 of 35 Coding 4. In this step a new counter, Cl, and its binary equivalent, int C1_Binary(4), will be added at the beginning of the Code 5 after the lines int CO and int CO_Binary[4). Add variable C1 and initialize it in the same way that CO has been added. Write your modified code in the space provided for Code 6. Code 6. Coding 5. Before beginning with the new loop to compute the dot product of table 47, it is important to modify the value of C1 with the respect to the value derived from second element of vector CO_Binary, i.e. CO_Binary[1]. Again knowing that binary values can be either 0 or 1, then it is easy to not increment or increment C1 by one respectively. Modify Code 6 to either increment or not the value of C1 with respect to the value of CO_Binary found at the end of code 6. Make sure to use a conditional IF statement. Write your code in the space provided for Code 7. Code 7

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems For Integration Of Media And User Environments 98

Authors: Yahiko Kambayashi, Akifumi Makinouchi, Shunsuke Uemura, Katsumi Tanaka, Yoshifumi Masunaga

1st Edition

9810234368, 978-9810234362

More Books

Students also viewed these Databases questions

Question

Evaluate the importance of diversity in the workforce.

Answered: 1 week ago

Question

Identify the legal standards of the recruitment process.

Answered: 1 week ago