[SOLVED] MIPS-Project 1

24.99 $

Category:

Description

Rate this product

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

๐‘Š๐‘Š๐‘Š๐‘Š๐‘Š๐‘Š๐‘Š๐‘Šโ„Ž๐‘ก๐‘กร—10000 follows. BMI =ย ย ย ย ย ย ย ย ย ย  ๐ป๐ป๐‘Š๐‘Š๐‘Š๐‘Š๐‘Š๐‘Šโ„Ž๐‘ก๐‘ก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”.