Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

; Linked List creation from array. Insertion into the list ; You are given an array of student records starting at location x3500. ; The

; Linked List creation from array. Insertion into the list

; You are given an array of student records starting at location x3500.

; The array is terminated by a sentinel. Each student record in the array has two fields:

; Score - A value between 0 and 100

; Address of Name - A value which is the address of a location in memory where this student's name is stored.

; The end of the array is indicated by the sentinel record whose Score is -1

; The array itself is unordered meaning that the student records dont follow any ordering by score or name.

; You are to perform two tasks:

; Task 1: Sort the array in decreasing order of Score. Highest score first.

; Task 2: You are given a name (string) at location x6000, You have to lookup this student in the linked list (post Task1) and put the student's score at x5FFF (i.e., in front of the name) If the student is not in the list then a score of -1 must be written to x5FFF

; Notes:

; * If two students have the same score then keep their relative order as in the original array.

; * Names are case-sensitive.

.ORIG x3000

; Your code goes here

TRAP x25

; Your .FILLs go here

.END

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

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago