Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 students 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 n is 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_2

Step: 3

blur-text-image_3

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

Database Systems Introduction To Databases And Data Warehouses

Authors: Nenad Jukic, Susan Vrbsky, Svetlozar Nestorov

1st Edition

1943153191, 978-1943153190

More Books

Students also viewed these Databases questions

Question

=+What's the purpose of the piece?

Answered: 1 week ago

Question

how does business ethics help

Answered: 1 week ago

Question

3. Is IBMs program really a mentoring program? Why or why not?

Answered: 1 week ago