Write a simple MIPS program using MARS | Computer Science | Assembly

[ad_1]

Write a MIPS math quiz program in MARS.

Download MARS: [login to view URL]

The program should start with a friendly user greeting. From there, it should generate a random arithmetic problem. Your program will need to generate three random things: the first and second operand and the operator to use. Your program should generate random positive integers no greater than 20 for the operands. The possible operators are +, -, * and % (MOD). The user should be prompted for an answer to the problem. If they are correct or incorrect, the program should inform them either way.

Continue prompting the user to solve addition problems until they enter a value of -1. If they enter -1, print out their score (how many problems they solved correctly/incorrectly, along with a percentage of how many were correct). Then quit the program.

Hints/Resources: [login to view URL]~setia/cs365-S02/[login to view URL]

For random numbers: [login to view URL]

Here’s a sample run of the program (images attached). User inputs are highlighted in yellow.

Skills: Computer Science, Assembly

See more:
write simple excel program, simple java program using gui, write simple java program magtek card reader, write simple gui program, simple chat program using socket programming java, simple sudoku program using java coding, write simple payroll program, simple gui program using, write simple calculator program perl, write simple java program driver, write simple sql program, write simple voting program, write simple java program sorting, write simple line editor using linked lists, write cpu scheduling program using round robin algorithm, write simple blackjack program, write simple netbeans program, simple paint program using opengl, simple interest program using python, write a simple python program using single line comment and multi-line comment






(
3 reviews

)




Gainesville, United States



Project ID: #29348776



[ad_2]

Source link