Question
I need to take an array and the be able to find the mean, median, average, min, and max. The array will be grades and
I need to take an array and the be able to find the mean, median, average, min, and max. The array will be grades and the end of the array should end with -1. I am honestly clueless on how to do this. I get the high level of initializing the array and then probably having to sort it and then iterate over it to find the values I need, but I do not know how to write that out in Assembly Language. Please help. I need the assembly language code and the flow diagram if possible. I tried to load the array and from what I know, i think this is how a set of vectors would be written out in the code. array: .word 5,4,3,2,1,-1 with -1 showing the end of the array which in this case is the end of the grade set. Language is ARM Assembly Language (thumb2) with STM32 Microcontroller
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started