Question: MIPS assembly question. Create a program that does the following. Prompt for and accept a string of up to 80 characters from the user and

MIPS assembly question.

Create a program that does the following. Prompt for and accept a string of up to 80 characters from the user and check for the following: how many uppercase letters are in the string, how many lowercase letters are in the string, how many digits are in the string and how many spaces are in the string. Subtract the sum of 3-6 from the string length to determine how many other characters are in the string.

Output should look like this:

Enter a string: a6cibDD734*^$D.#

Your string contains: 16 characters.

There are 3 upper case characters.

There are 4 lower case characters.

There are 4 digits.

There are 0 spaces.

There are 5 other characters.

(It is probably less confusing to use a separate loop for each of the task from 3 to 6 rather than attempting to do all in a single loop...)(I would appreciate a code screenshot please)(Every string that is entered will have a newline character (0x0a) appended to its end and then the null character (0x00). Do not count either of these characters when reporting the string length (stop scanning when you reach the newline character). You can use the la instruction to place the address of the buffer in a register. The lb instruction can be used to read a byte from memory into a register (it will be placed on the right end of the register and the upper part of the register will be zeroed out. Use code similar to this to count the characters in the string.)

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 Databases Questions!