GithubHelp home page GithubHelp logo

ca_mips_assembly_project1's Introduction

Computer Organization Project 1 – MIPS Assembly 1

Due: 23:55, Mar. 17, 2021

In this start-up project, you are required to get familiar with both MARS (MIPS Assembler and Runtime Simulator) programming environment and basic MIPS (Microprocessor without Interlocked Pipeline Stages) integer instructions. Please write a program to perform body mass index (BMI) computation. The inputs (weight in kilogram and height in centimeter) and output (BMI) are all integers. Do NOT use any floating point instruction in this project. The formula for BMI computation is listed as follows. BMI = Weight×10000 / Height^2. If the BMI is larger than or equal to 24, print "You are overweight". If the BMI is less than or equal to 18, print "You are underweight". Please submit your source code according to the following rules:

1- Write down enough comments such that you would receive higher scores.

2- The filename is your student ID (e.g., B12345678.asm).

Example:

Please input your weight in kilogram:

80

Please input your height in centimeter:

170

Your BMI is 27. You are overweight.

Please input your weight in kilogram:

50

Please input your height in centimeter:

165

Your BMI is 18. You are underweight.

Please input your weight in kilogram:

55

Please input your height in centimeter:

160

Your BMI is 21

ca_mips_assembly_project1's People

Contributors

gummy789j avatar

Watchers

 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.