Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE HELP ME START IT. I AM CONFUSED WITH THE LOOP PART. PLEASE NO PSEUDO INSTRUCTIONS. THANKS IN ADVANCE. Is step 2 supposed to be

PLEASE HELP ME START IT. I AM CONFUSED WITH THE LOOP PART. PLEASE NO PSEUDO INSTRUCTIONS. THANKS IN ADVANCE.

image text in transcribed

Is step 2 supposed to be in the loop? How will it repeat a number of specified amount?

str2 is the string "Enter a number" and then I am not sure on how to carry out the if-else, please help and no pseudos. Thanks

image text in transcribed

Write a MIPS assembly language program to do the following 1. 2. Print your name Prompt the user for the number of times to repeat the testing of your logic for step 4. (See the example below.) Read an integer If the integer that is input is less than 1 3. 4. Print an error message Else Repeat the following steps the number of times input in step 3. This will require a loop a. Read in a list of integers ending with a 0. The 0 marks the end of the input and is not considered part of the list Print the largest and smallest numbers in the input list. If only a zero appears in the list, print an error message b. 5. Print an ending message and then end your program. Note: your program should not end with an error message. Example input and output for the program. In this example, the number of times the logic is tested in this example is 3. Tom Jones Enter the number of times to test: 3 Enter a number 1 Enter a number O The smallest number is 1 The largest number is 1 Enter a number 0 Error: there are no numbers to test Enter a number -1 Enter a number 8 Enter a number 5 Enter a number 0 The smallest number is -1 The largest number is 8 Program complete Specifics: Use only the instructions covered to date. No jal and jr. Do not use any pseudo-instructions

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions

Question

Assess three steps in the selection process.

Answered: 1 week ago

Question

Identify the steps in job analysis.

Answered: 1 week ago