Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

The purpose of this assignment is to write a program in LC-3 assembly language to sort an array of student records in descending order of

image text in transcribedimage text in transcribed

The purpose of this assignment is to write a program in LC-3 assembly language to sort an array of student records in descending order of scores. Additionally, the program should search the array (post sorting) to find the score of a student given a name. Details An array of student records is given at address x3500. Each record holds information about a student with two fields in this order: Score (ranges from O to 100) Address of Name (the address of the memory location where this student's name is stored) Both fields take up 16-bits each so all elements of the array are of the same length. The end of the array of student records is indicated by the sentinel record which has a score of -1. The array itself is unordered meaning that the student records don't follow any ordering by score or name A few example files are provided for you so you can make sure you are reading the correct input and producing the correct output. These files are: Students.asm, Joe.asm, Batman.asm, Wow.asm and Lookup.asm Tasks: You have to complete two tasks. Task 1:Sort the array in decreasing order of score. Highest score first. Note that the sorted array will be ordered by score but each record has an associated name that needs to go with the record. Here is an example test case with an array of 3 student records prior to sorting 2500 420O X3504 3506 After sorting, the array looks like so: 5 CS 3500 420o The purpose of this assignment is to write a program in LC-3 assembly language to sort an array of student records in descending order of scores. Additionally, the program should search the array (post sorting) to find the score of a student given a name. Details An array of student records is given at address x3500. Each record holds information about a student with two fields in this order: Score (ranges from O to 100) Address of Name (the address of the memory location where this student's name is stored) Both fields take up 16-bits each so all elements of the array are of the same length. The end of the array of student records is indicated by the sentinel record which has a score of -1. The array itself is unordered meaning that the student records don't follow any ordering by score or name A few example files are provided for you so you can make sure you are reading the correct input and producing the correct output. These files are: Students.asm, Joe.asm, Batman.asm, Wow.asm and Lookup.asm Tasks: You have to complete two tasks. Task 1:Sort the array in decreasing order of score. Highest score first. Note that the sorted array will be ordered by score but each record has an associated name that needs to go with the record. Here is an example test case with an array of 3 student records prior to sorting 2500 420O X3504 3506 After sorting, the array looks like so: 5 CS 3500 420o

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 Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions