Em Andamento

MIPS Array Programs

1. What is the address of element 36 (assuming you start counting at 1) of a 45-element array that starts at memory location 40 if the elements are:

a. characters b. integers c. 7-byte structs d. 10 character strings

2. A 12 by 11, 2-dimensional array, has its first row and column numbered 0,0. The base address is 1000, and each element is a word. What is the byte address of element [8,10] assuming row-major form? What is the byte address of element [8,10] assuming column-major form?

3. Using an array to implement a stack, write a SPIM program that reads a string and prints out its value if executed in postfix notation. Make sure to report if the input is not in correct postfic form. For example: 897*6-+, should return 65, (i.e. 8+ (63-6)), but 7**78+ is not in correct postfix form and should return a message rather than a value. The stack should make it easy to check whether or not the input is correct. You may assume that all numbers are single integers between 0 and 9, and that operations are either *, ??" or +. We will review the algorithm for this in class.

4. Write a SPIM program that takes a 6 by 8 two dimensional array of integers, stored in row-major form, and copies it to a 6 by 8 array stored in column-major form. Print the array in 6 rows separated by linefeeds, with each row containing 8 integers separated by spaces. Then print each array in the order it is linearly stored.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.

3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).

## Platform

Windows, PCSpim

Habilidades: Montagem, Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software

Ver mais: mips array, string algorithm, program algorithm example, integers form, form stack review, element 8, code programs, algorithm string, algorithm notation, write 1000 review, notation, program using stack, postfix message, array form, implement algorithm code, form array, php form array, algorithm array, numbers array program, implement mips code, value engineering, string array, write mips code software, run programs windows, operations report

Acerca do Empregador:
( 16 comentários ) United States

ID do Projeto: #3007911

Premiar a:

makshe

See private message.

$25.5 USD em 7 dias
(41 Avaliações)
4.6

3 freelancers estão ofertando em média $28 para este trabalho

bullsora

See private message.

$34 USD in 7 dias
(25 Comentários)
4.0
kidronvw

See private message.

$25.5 USD in 7 dias
(5 Comentários)
2.8