Weight. 2. A BMI (body mass index) is roughly weight over height square (BMI Height Write Assembly code to calculate average BMI of N students. Relevant data is stored in memory as shown in the example below. Address 10 has the total number of students (N) followed by N weights and heights. Store the computed average BMI at the address 70. For example, if N = 2, the memory contents will be as follows: 0 1 |2 |3 | 4 5 6 10 02 96 05 5A | 06 There are 2 records. Weight and height of the 1s* person is 96 and 05 respectively. Similarly, 5A and 06 are the weight and height of the second person. Assume decimal points are ignored and the average will be a rounded integer value. All divisions are integer divisions as well. Please use the Instruction Set of the simulator discussed in class. (http://www.softwareforeducation.com/sms32v50/sms32v50_manual/245-IsetSummary.htm)

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter3: Data Representation
Section: Chapter Questions
Problem 12VE
icon
Related questions
Question
Weight
2. A BMI (body mass index) is roughly weight over height square (BMI :
Height2
Write Assembly code to calculate average BMI of N students. Relevant data is stored in
memory as shown in the example below. Address 10 has the total number of students (N)
followed by N weights and heights. Store the computed average BMI at the address 70.
For example, if N = 2, the memory contents will be as follows:
0 1 2 |3 | 4 |5 6
10 02 96 05 5A | 06
There are 2 records. Weight and height of the 1s person is 96 and 05 respectively. Similarly,
5A and 06 are the weight and height of the second person.
Assume decimal points are ignored and the average will be a rounded integer value.
All divisions are integer divisions as well.
Please use the Instruction Set of the simulator discussed in class.
(http://www.softwareforeducation.com/sms32v50/sms32v50_manual/245-IsetSummary.htm)
Transcribed Image Text:Weight 2. A BMI (body mass index) is roughly weight over height square (BMI : Height2 Write Assembly code to calculate average BMI of N students. Relevant data is stored in memory as shown in the example below. Address 10 has the total number of students (N) followed by N weights and heights. Store the computed average BMI at the address 70. For example, if N = 2, the memory contents will be as follows: 0 1 2 |3 | 4 |5 6 10 02 96 05 5A | 06 There are 2 records. Weight and height of the 1s person is 96 and 05 respectively. Similarly, 5A and 06 are the weight and height of the second person. Assume decimal points are ignored and the average will be a rounded integer value. All divisions are integer divisions as well. Please use the Instruction Set of the simulator discussed in class. (http://www.softwareforeducation.com/sms32v50/sms32v50_manual/245-IsetSummary.htm)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

It has to be ASSEMBLY CODE (like MOV AL, 10)

Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning