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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started