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: points
Step : Define a double word array with the following decimal numbers: points
Step : Using a loop: no loophalf credit
Display the values on the console. points
Calculate the sum of the integers. points
Step : Display the sum on the console. points
Step : Calculate the average. Do not worry about the remainder. points
Display the average. points
Step : 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:
F points if not done in a procedure points
Display the letter returned from the CalGrade procedure in Main. points points if the letter is displayed from the procedure or no procedure created and displayed from the MAIN procedure
Example Output:
Grades:
Sum:
Average:
Letter Grade: A
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
