Home / Expert Answers / Computer Science / create-a-procedure-named-calcgrade-that-receives-an-integer-value-between-0-and-100-and-returns-a-s-pa164

(Solved): Create a procedure named CalcGrade that receives an integer value between 0 and 100, and returns a s ...



Create a procedure named CalcGrade that receives an integer value between 0 and 100, and returns a single capital letter in the AL register. Preserve all other register values between calls to the procedure. The letter returned by the procedure should be according to the following ranges: \table[[Score Range,Letter Grade],[A,90 to 100],[B,80 to 89],[C,70 to 79],[D,60 to 69],[F,50 to 59]] Write a test program that generates 10 random integers between 50 and 100, inclusive. Each time an integer is generated, pass it to the CalcGrade procedure. You can test your program using a debugger, or if you prefer to use the book's library, you can display each integer and its corresponding letter grade. Assembly language please.



We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe