Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step: 3

blur-text-image

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

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions