Giter Site home page Giter Site logo

project2's Introduction

Computer Architecture ECE251 Project 2

Purpose / Goal

  • Read file that contains a list of numbers (One number per line - limited to 32 bits; Line terminated by '\n'
  • Create another file that has the numbers in ascending order

Help

Usage: Sort linefeed delimited numbers in a file in ascending order then output to a file

Example:

  • input.txt output.txt It is also possible to replace the file with the sorted version:
  • numbers.txt numbers.txt

Installation Method

  1. Download the assembly file from GitHub using curl:
curl https://raw.githubusercontent.com/alizameller/Project2/main/jag2.s --output jag2.s
  1. Download the Makefile from GitHub using curl:
curl https://raw.githubusercontent.com/alizameller/Project2/main/Makefile --output Makefile
  1. Run the Makefile in the directory downloaded:
make
  1. Run the exectutable generated followed by the input and output file names:
./jag2.out input.txt output.txt

If you do not include an input/output file a help message will be displayed

File Format

Your input file should look something like this:

1248293
-23472394
2384
2347
234
1
33423
23478
-6789
-2346
23487
-2342374

Running jag2.out will then output this into the output file:

-23472394
-2342374
-6789
-2346
1
234
2347
2384
23478
23487
33423
1248293

Design Document

The Design Document can be found here

project2's People

Contributors

alizameller avatar gary-kim avatar jakekali avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.