Question: A program in MARIE.js assembly code The purpose of the program is to capture 2 0 measures in total, they can be input or into

A program in MARIE.js assembly code
The purpose of the program is to capture 20 measures in total, they can be input or into the program already
It will capture 10 measures for the variable LF and another 10 measures for the variable HF
It will then take the average of each variable both LF and HF, then it will divide LF/HF
The variable that will store the result from LF/HF is called Index
Then it will print the value of the variable Index
If Index is greater than 1(Index>1), then it will print the following message "Fatigue detected"
Finally the measures stored in the variable LF and HF will be erased (cleared) and the process will capture new data
The last step, capture of data, is just meant for when the values of the variable are input manually.
The range of values for HF can be any number between 0.15-0.30
For LF it can be between 0.05-0.15

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!