Nasm Comparison
Need help programming in Assembly language (fasm, nasm,etc.) a program that accepts integer numbers ranging…
I Need help programming in Assembly language (fasm, nasm, etc.)
1)
Write a program that accepts integer numbers ranging between 0 and 100 (test scores). Find the average of these numbers, output the average to the nearest whole number (don’t worry about rounding up), and output the letter grade on a 10 point scale (90> A, else 80> B, etc.). You must check that the number is in range and provide a way to end the entering of numbers.
2)
Modify Part 1) to use a subroutine (subprogram) to specify the letter grade that someone will receive. You should calculate the average and then pass it to the subprogram for comparison. You may either print within the subprogram or pass the value back for printing. You may keep the subprogram within the main program, but you must pass in the average by pushing it onto the stack.
Since this is elementary work as far as a person with minimal assembly experience would be concerned, and since this is Yahoo! Answers, I feel you’d be better off asking on a site like forums.devshed.com.
