Ask Question, Ask an Expert


Ask Assembly Expert

Use only MIPS instructions covered on the link Integer Instruction Set .

problem 1: prepare a MIPS assembly language program which accomplishes the given tasks:

The program will prompt the user to enter an integer k between 1 and 10. If the entered number does not satisfy the above condition, use a loop and prompt the user for a new entry (till a valid number is entered).

Depending on the k value implement the given cases:

Case 1: if 0 < = k < 5

compute Func(n): if (n=0 or n=1) then Func(n) = 3;
else Func(n) = (n+1)Func(n-2) + n;
Have n (n >= 0) be prompted from the user.
Display a result_message together with the numeric value of the result.

NOTE: use recursive function call.

Case 2: if 5 <= k <= 10

Prompt the user to enter one by one a sequence of 10 integers. For each entered integer:

a. Read in the integer.
b. Display the integer.
c. In a new array, store in reverse order the entered integers.

Display the contents of the new array.

The program will keep prompting the user until 0 is entered. If 0 is entered the program will exit.

Your program should be well documented with comments.

Your console output should include helpful prompts for the user.

Assembly, Programming

  • Category:- Assembly
  • Reference No.:- M96021

Have any Question? 

Related Questions in Assembly

1write build and run an assembly language program that

1. Write, build, and run an assembly language program that displays 0 through 9 on the screen. You can only use the following data segment: message BYTE "0",13,10,0 2. Write an Assembly Language program that will write o ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate