Coloumn1; Criteria1: Average of best three marks (CA); CA>=40

Coloumn2; Criteria2: Average of marks of two practical tests (PA); PA>=40

Coloumn3; Status of Eligibility



Yes, Yes, Eligible for the final examination

Yes, No, P1>=50: Repeat the practical test2 only

No , P1<50: Repeat both practical tests

No, Yes/ No, Repeat the full course next year


Write an assembly code for the following tasks.


* Task#1: To check whether CA>=40 and hence call one of the sub routines “check_criteria_2” or “output_result” accordingly.


* Task#2: To check whether PA>=40 and hence call one of the sub routines “check_p1” or

“output_result” accordingly.

Respuesta :

Answer:

Please check the attachment.

for the assembly language program the jump and move keywords have been used to establish the if else ladder.

Also for the best three marks, we need to store the three theory and two practical marks in an array, and then we can sort it to get the best three marks to find the CA. and then from initial array, we can find the last two practical test parks, and find their average.

Rest of the calculation is as being mentioned in the image. Also, in the image we have 2 practicals. We need to count two instead of three there, and rest is as shown.

Explanation:

The answer does not require any further explanation.

Ver imagen problemsolver2019