Question: Utility File and Program Utility File ( 1 0 points ) : Think about the programs you have already written from previous assignments. What are

Utility File and Program
Utility File (10 points):
Think about the programs you have already written from previous assignments. What are the common operations that you have used for each program? Write a utility file in MIPS assembly language that includes several subprograms for the commonly used operations. At minimum it should include the following 5 subprograms:
Prompting the user for a string
Prompting the user for an integer
Printing a string to the console
Printing an integer to the console
Exiting the program'
Some ideas for other subprograms might be:
Prompting for input using a message dialog box
Output using a message dialog box
Printing a newline
Program Implementation (10 points):
Write a separate, MIPS assembly program that prompts the user to enter their name as a String value, their age as an integer value, and print both to either the console or a message dialog box. The program should include the utility file and make calls to the subprograms from that utility file using the jal instruction. The program should print the information in an informative manner not just output it with no context for the user.
Example output:
What is your name?
How old are you?
Your name is
You are years old years old.
When you have finished, please submit a plain text file of your main program and the utility file.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!