CS代写 CS 352 (MIPS) – Multiple-base Palindromes

CS 352 (MIPS) – Multiple-base Palindromes
The decimal number, 717 = 10110011012 (binary), is palindromic in BOTH bases. Note that the palindromic number, in either base, do not include leading zeros.
Write a MIPS program to print all pairs of these palindromic numbers up to a maximum number (n) to be determined by a user prompt (see output dialog box below). Include a boolean function named isPalidrome(x, k) that returns true if a number x (either in base 10 or 2) is a palindrome in base k. You may also include other functions that you think would be helpful.
Output dialog

Copyright By PowCoder代写 加微信 powcoder

Enter value of n (in base 10): 10000
Pairs of palindromic numbers from 1 through XX:
99 1100011 313 100111001 585 1001001001 717 1011001101
Submission
The following instructions must be adhered to:
1. Name your file .asm → e.g., tanj.asm
2. Drop said file to the W drive for cs352.
3. Email your file to the TA: and also a copy to me.

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com