Question: Objectives: To use arrays, loops, accumulators, arithmetic with integers, conditional statements, procedures and the IRVINE library. ? * * * * Note: whatever you turn

Objectives: To use arrays, loops, accumulators, arithmetic with integers, conditional statements, procedures and the IRVINE library.
?**** Note: whatever you turn in MUST ASSEMBLE. It cannot contain errors.
A grade of zero is given if what is turned in does not assemble.
Comment all of your code: 5 points
Step 1: Define a double word array with the following decimal numbers: 100,100,100,100,90.10 points
Step 2: Using a loop: (no loop-half credit)
Display the values on the console. 10 points
Calculate the sum of the integers. 10 points
Step 3: Display the sum on the console. 5 points
Step 4: Calculate the average. Do not worry about the remainder. 10 points
Display the average. 5 points
Step 5: Pass the average to the CalcGrade procedure. Return 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:
90-100A
80-89,B
70-79C
60-69D
0-59 F 30 points (if not done in a procedure 15 points)
Display the letter returned from the CalGrade procedure in Main. 15 points (8 points if the letter is displayed from the procedure or no procedure created and displayed from the MAIN procedure)
Example Output:
Grades: 10010010010090
Sum: 490
Average: 98
Letter Grade: A
 Objectives: To use arrays, loops, accumulators, arithmetic with integers, conditional statements,

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 Databases Questions!