Question
please use MIPS assembly Code 1. String shuffle. Two strings a1 an and b1 bn with the same length can be shuffled as a1b1 anbn.
please use MIPS assembly Code
1. String shuffle. Two strings a1 an and b1 bn with the same length can be shuffled as a1b1 anbn. Your program is to read two strings (with the same length) from the keyboard and print the shuffle out.
2. Transposition. A string with length k m can be transposed as follows. First, we cut the string into k blocks, each of which is of length m. Then, we pick the first character from each block, pick the second character from each block, etc. The characters picked in this order form a string, called a (k, m)-transposition. For instance, let k = 3 and m = 2. For a given string abcdef, its transposition is acebdf. Your program is to read, from keyboard, k, m, and a string of length k m, and then print its transposition out.
3. Two digit adder. Your program is going to read a string from keyboard, where the string is in the following format: XX+YY= where the XX and the YY are two-digit numbers. Your program is going to print out the sum (for instance, when the string is 13+31=, the output should be 44.). However, when the sum is bigger than 99, pls print out overflow instead.
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