subject

The following C-like code calculates the maximum difference between any two unsigned numbers within an array A consisting of 256 8-bit values. Complete the HLSM for the code. (Answers are case sensitive) Inputs: byte a[256], bit go Outputs: byte max_diff, bit done MAX_DIFF: while(1) { while(!go); done = 0; i = 0; max = 0; min = 255; // largest 8-bit value while( i < 256 ) { if( a[i] < min ) { min = a[i]; } if( a[i] > max ) { max = a[i]; } i = i + 1; } max_diff = max - min; done = 1; }

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
Someone with this coz i don’t really know what i can choose, just pick whatever u want. homework - you need to choose a website that you like or use frequently. you must visit the website and discuss 6 different features/parts/aspects of the website that you think makes it good. (100 words)
Answers: 2
question
Computers and Technology, 22.06.2019 11:30
Communication is the exchange of information. true false
Answers: 2
question
Computers and Technology, 22.06.2019 13:30
Jane’s team is using the v-shaped model for their project. during the high-level design phase of the project, testers perform integration testing. what is the purpose of an integration test plan in the v-model of development? a. checks if the team has gathered all the requirements b. checks how the product interacts with external systems c. checks the flow of data in internal modules d. checks how the product works from the client side
Answers: 1
question
Computers and Technology, 22.06.2019 23:00
Suppose s, t, and w are strings that have already been created inside main. write a statement or statements, to be added to main, that will determine if the lengths of the three strings are in order by length, smallest to largest. that is, your code should determine if s is strictly shorter than t, and if t is strictly shorter than w. if these conditions hold your code should print (the boolean value) true. if not, your code should print false. (strictly means: no ties) example: if s, t, and w are "cat", "hats", and "skies" your code should print true - their lengths are 3-4-5; but if s, t, and w are "cats" "shirt", and "trust", then print false - their lengths are 4-5-5 enter your code in the box below
Answers: 2
You know the right answer?
The following C-like code calculates the maximum difference between any two unsigned numbers within...
Questions
question
Mathematics, 08.09.2021 16:40
question
Computers and Technology, 08.09.2021 16:40
question
Mathematics, 08.09.2021 16:40
Questions on the website: 13722361