Question: Write an MIPS program that prompts the user for a string. Read the string into a buffer. Push a NUL onto the stack. Then scan

Write an MIPS program that prompts the user for a string. Read the string into a buffer. Push a NUL onto the stack. Then scan the string from right to left starting with the right-most character (this is the one just before the NUL terminator). Push each non-vowel character onto the stack. Skip over vowels. For this exercise, a vowel is one of 'a', 'e', 'i', 'o' or 'u'. You may assume all lower-case letters in the string. Now pop the stack character by character back into the buffer. Put characters back into the buffer from left to right. Stop popping, and end the string with a NUL byte you pushed first. The buffer will now contain the string, in the correct order, without vowels.

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!