Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 Not yet answered Marked out of 20.00 P Flag question The objective of this problem is to deal with set of student records

image text in transcribed
Question 1 Not yet answered Marked out of 20.00 P Flag question The objective of this problem is to deal with set of student records that are saved in sequence in the memory. The beginning of the list (first record) is at location LIST in the memory. For each student, a record consists of the student's identification (id) number (4 bytes), followed by the scores the student earned on three tests (each test 4 bytes). There are n students in the class, and the value nis stored in location LOCN. The memory is byte addressable and the word length is 32 bits. Write a subroutine that find the address of a certain student by matching his/her student identification number and calculate the average of his/her three tests. Parameters should be passed on the stack; the address of the student id and the average should be also returned on the stack. The content of registers should not be affected by the subroutine

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions