Fundamentals of computer science
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →CSC 2250 Fundamentals of Computer System Lab 3 1. (40 points): One-way branch: Write a MIPS program to prompt and read a positive integer x. if x >15 subtract 15 from x. Finally, print x. Below is a java program that solves the problem. Refer to the Java implementation to write your MIPS program. Java implementation: The sample runs for the java program above: Sample Run1: Sample Run2: (1) Screenshot of your program: [Load your program into QtSPIM and run your program. Take a screenshot showing program code and register values.] (2) Test cases (screenshot of result, showing input/output): 2. (60 points): Two-way Branch Write a SPIM program to read a positive integer and to determine and display whether it is an even number or odd number. Below is the java implementation, refer to java implementation to implement your MIPS program. The sample runs for the java program above: Sample Run1: Sample Run2: (1) Screenshot of your program: [Load your program into QtSPIM and run your program. Take a screenshot showing program code and register values.] (2) Test cases (screenshot of result, showing input/output): Program Grading Rubric Each program is graded using the following rules: (1) Your program is assembled successfully: 30% (2) Your program works as expected: 50 % (3) Your program follows style guidelines, including correct program header: 10 % (4) Your program is commented properly 10%
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds
