Calculate some statistics about the performance

Assignment Help Assembly Language
Reference no: EM132105145

Problem 

In this problem, you will write LC-3 assembly code to calculate some statistics about the performance of 30 students in a class, based on their scores for an exam Assume that the scores of the 30 students are present in contiguous memory locations, starting at 0x4000 For each of the following, your program must implement subroutines.

Failure to do so will result in deduction of points even if you get the correct results.

1) Implement a subroutine MAX SCORES to find the highest score obtained by a student and store this value in the memory location 0x5000

2) Implement a subroutine MIN SCORES to find the lowest score obtained by a student and store this value in the memory location 0x5001

3) Implement a subroutine AVG SCORES to calculate the average score of the class and store this value in memory location 0x5002. lf the average score is a fraction, round it off to the next higher integer. For example, if the average turns out to be 30.22, the average should be rounded off to 31

4) Implement a subroutine BELOW AVG to calculate the number of students who have scored below the class average (which has been rounded off), and store this value in memory location 0x5003 

Your code should start at memory location 0x3000. You can assume there is no overflow of integers at any step.

Reference no: EM132105145

Questions Cloud

Utilizes your knowledge about a number of data structures : Write a Java application that utilizes your knowledge about a number of data structures we have been discussing throughout the course of this semester.
Discuss the contents of a detailed project management : Discuss the contents of a detailed project management plan using a real-world project examples
Growth of outsourcing to third-party goods : With the growth of outsourcing to third-party goods and services at a rate of 40 to 80 percent, how can project managers lead successfully?
What are some other ways to accomplish this : One way to empower buyer and seller organizations to approve all project transactions is to include a caveat that lawyers from both sides
Calculate some statistics about the performance : Implement a subroutine MAX SCORES to find the highest score obtained by a student and store this value in the memory location 0x5000 .
Developing a two level work breakdown structure : Describe two methods for developing a two level work breakdown structure (WBS), where level 2 represents achievable project deliverabl
Key milestone quality criteria : Describe, using a set of examples, the key milestone quality criteria, attached to each level two label (deliverable), in a WBS.
Describe the nature of the links between projects : Describe the nature of the links between projects and an organisation's key strategies and provide two examples.
Create an erd that can be implemented for a medical clinic : Using the Crow's Foot methodology, create an ERD that can be implemented for a medical clinic, using at least the following business rules:

Reviews

Write a Review

Assembly Language Questions & Answers

  Create a assembly language subroutine

Create a assembly language subroutine MULSUM that takes an array named A containing n bytes of positive numbers, and fills two arrays, array B containing n words and array C containing n long words

  Write a function in linux assembly

Write a function in Linux assembly

  Analog measurements

Prepare an assembly program for the correctly measures the wind direction

  Design a simple digital clock

Design a simple digital clock

  Write an assembly program

Prepare an Assembly program that reads in a number of cents.

  Write an assembly language program

Write an assembly language program for encrypting alphabates of a string

  Greatest common divisor of integers-masm assembly language

Must be done in MASM assembly language: Greatest common divisor of two integers is largest integer which will evenly divide both integers. GCD algorithm involves integer division in a loop.

  Write assembly program-find right admission price to movie

Write the Assembly program to find correct admission price to movie. Price of admission to a movie is $7 for kids (under 12) and $9 for adults.

  Create simple 8-bit alu using add-subtract-shift functions

Create a simple 8-bit ALU. Requirements:The eight functions that you will implement are: add, subtract, and, or, shift left logical, less than, shift right logical.

  Write assembly program print binary representation-integers

Write the assembly program called hw6_ex1, stored in file hw6_ex1.asm. This program must prompt user to enter signed 32-bit integer. Program must print out binary representation of the integer.

  Allot op-codes and add microcode to microprogram

Allot op-codes and add microcode to microprogram of Mic-1 to implement following instructions which are then included with IJVM instruction set.

  Write mips assembly program to read two non-negative numbers

Write MIPS assembly program to repeatedly read two non-negative integers and print integer product and quotient without using multiplication and division instructions.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd