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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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