0% found this document useful (0 votes)
2 views1 page

Lab 3

The document contains two programming tasks in MIPS assembly language. The first task involves reading five integers from the user to determine the smallest number. The second task requires calculating bonus marks for a student based on their total marks and number of projects completed, using a nested if statement for the logic.

Uploaded by

nnm1440
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Lab 3

The document contains two programming tasks in MIPS assembly language. The first task involves reading five integers from the user to determine the smallest number. The second task requires calculating bonus marks for a student based on their total marks and number of projects completed, using a nested if statement for the logic.

Uploaded by

nnm1440
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Question 1:

Write a program in Assembly language using MIPS instruction set to read 5 integer numbers
from the user and find out the smallest among all the numbers.

Question 2:

Write a program in Assembly language using MIPS instruction set that will calculate the bonus
marks of a student based on the following tables:

Total Marks OR, Number of Projects Bonus Marks


Completed

>=90 >=3 10

>=80 >=2 5

>=70 >=1 2

For example, a student will receive a bonus mark of 5 if he gets 80 total marks or more but less
than 90, OR if he completes 2 projects in the course. Use a nested if statement to solve the
above problem.

Sample Input / Output:

Enter your total marks: 85​


Enter your number of projects completed: 1​
Bonus Marks: 5​

You might also like