QuestionQuestion

I Gaining Experience and Familiarity with Assembly Language Programming (32-bit). Write AI code that can serve as a grade calculator for single course in a semester.
1. First write the code to supports the calculation of a letter grade for N-1 student, with K=5 raw scores. Devise your own grading table.
2. Extend to code that supports the calculation of letter grades for at least N-10 students, each with K-10 raw scores. Devise your own grading table. Also support the determination of the Minimum, Maximum, Mean scores obtained in the class, as well as the Median scores and Modes.

Solution PreviewSolution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

include Irvine32.inc

.data
raw_scores db 5 dup(0)
grade db 0
score_msg db "Please enter the next raw score (max 100): ",0
end_msg db "The grade is ",0
.code
main proc
push offset raw_scores
call ReadScores
pop eax

push offset grade
push offset raw_scores
call CalcGrade
pop eax
pop eax

exit
main endp

;**********PROCEDURES***********

ReadScores proc uses eax ecx edx
;-------------------------------
;This procedure reads the scores
;from the console and stores
;them in the array
;Input Parameters on Stack:
; address of the scores array
;-------------------------------
push ebp
mov ebp,esp

mov ebx,dword ptr [ebp+20] ;scores address
mov ecx,0
READNEXT:
mov edx,offset score_msg
call WriteString
call ReadDec
mov [ebx+ecx],al
inc ecx
cmp ecx,5
jne READNEXT...
$50.00 for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Assembly Language Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats