Test program using three different cases

Assignment Help Basic Computer Science
Reference no: EM131441524

Problem 1: Write a MIPS program (which must be named as "hw4_prob1.s") that will read in a base (as an integer) and a value (nonnegative integer but as an ASCII string) in that base and print out the decimal value; you must implement a function (which accepts a base and an address for a string as parameters, and returns the value) and call the function from the main program. The base will be given in decimal and will be between 2 and 36, and the digits for the values will be in set [0...9, a...z]. You can assume that no overflow will occur and the value is valid in the given base. An example run will be:

Enter a base (between 2 and 36 in decimal): 2

Enter a number in base 2: 101

The value in decimal is: 5

Then you need to test program using three different cases (you must use three different bases) and include the results in the pdf file you need to submit.

Hint: The input and output can be done using syscalls in MIPS that are given on p. A-44 (Appendix A).

Reference no: EM131441524

Questions Cloud

Create an array of people first names : Create an array of people's first names. Using a loop, read the names from a text (txt) file, and store each one into the array. The array should allow for a maximum of 100 entries. Continue to read in first names and store them into the array. Th..
What is the boiling point of freshwater : To help you understand the oceanic world, you'll need to explore water's unique and usual physical properties and link to its chemical properties. There is a computer on the Captain's desk. You'll need to use it to figure out what's in your water...
Express total inventory as weeks of supply : Jack? Jones, the materials manager at Precision? Enterprises, is beginning to look for ways to reduce inventories. A recent accounting statement shows that the inventory investment for raw materials is $3,370,700?, for? work-in-process is $6,530,000?..
Identify your research paper topic : Identify your Research Paper topic and due date and receive GRST instructor approval. he body of your research paper must be at least eight pages with at least eight scholarly sources. A discussion board post is not a research paper, a group paper ..
Test program using three different cases : Write a MIPS program (which must be named as "hw4_prob1.s") that will read in a base (as an integer) and a value (nonnegative integer but as an ASCII string) in that base and print out the decimal value; you must implement a function
Different diagnostic tools presented in textbook : Compare and contrast two different diagnostic tools presented in the textbook that you believe would work well to manage change in your industry or organization. Why are these the best tools for your industry or organization?
What are possible solutions to remedy your chosen impact : Anthropogenically induced Climate Change or Global Warming endured many years of controversy before gaining widespread public acceptance despite the accumulation of substantial data and developing theories.What evidence or data do you think is the..
The work-in-process inventory level computed : Consider a Component X, one unit of which is used in every 5th Stapler (e.g., X could be a cartridge used to hold the staples). The average lead-time (= wait time in queue + production time) for one container of Component X is one week. Estimate the ..
Drawbacks of video evidence : Video is normally pretty solid evidence, but what are some of the drawbacks of video evidence that, as a prosecutor, you should be aware of?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Discuss the future of wireless lans

What is a wireless WAN? What kind of technology can be used in it? Is this the wave of the future?

  Design a flowchart or pseudocode for a program

Chocolate Delights Candy Company manufactures several types of candy.  Design a flowchart or pseudocode for a program that accepts a candy name (for example, "chocolate-covered blueberries"), price per pound, and number of pounds sold in the average ..

  Highlighting the most important information security

Assume that the IT department of a business has hired you, and your first task is to ensure the department is following essential information security practices.

  What types of output and information delivery

What types of output and information delivery would you suggest for the system? Please support answer with references from the Internet. When citing references please do so with APA 6th edition formatting.

  Example of the effect of multithreading

Imagine you are a graphic artist working on an animation for a movie. Describe at least one (1) possible effect that multithreading could have on your work process. Support your response with at least (1) example of the effect of multithreading.

  Ieee 754 32-bit floating point values

Convert the following numbers to IEEE 754 32-bit floating point values (display results in hexadecimal)

  Write the code to retrieve and read data using this approach

Write the code to retrieve and read the data using this approach.

  Write a short code fragment to add the even numbers

1.Write a short code fragment to add the even numbers from 1 to 10 using an 8086 processor and the instructions given in the lecture. 2.Search the web for the programming model for a Zilog Z80 microprocessor and compare it with the programming m..

  The gathering of the information by team of core

Describe some likely instances that demonstrate when the gathering of the information by team of core software developers who focus on bitcoin were working to fix the problem Use citations to support your arguments about how some action or resu..

  Difference between sdlc model and sdlc methodology

What is the difference between sdlc model and sdlc methodology. Give an example and show description of each model and methodology?

  Describe the importance of hardware independence

Describe the importance of hardware independence. List three benefits of data redundancy. What is the role of Active Directory in the Windows operating system

  Smartphones and the great digital divide

Smartphones and the Great Digital Divide on page 282 in the text and answer the questions below. APA formatting guidelines require a title page, abstract page, and reference page in addition to the body of the paper.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd