Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago