Paste
Copy
Cut
Options

¡Tu solución está lista!

Nuestra ayuda de expertos desglosó tu problema en una solución confiable y fácil de entender.

Mira la respuesta
  • Pregunta: Exercise 2. Solve the following question in MARS - MIPS. Please add the outputs. Given an array A of 5 elements and a value X, both entered by keyboard. Calculate: a) The smallest element of the array b) Find if X is in A, if it is true print the message: "I found it"

    Exercise 2. Solve the following question in MARS - MIPS. Please add the outputs.

    Given an array A of 5 elements and a value X, both entered by keyboard. Calculate:
    a) The smallest element of the array
    b) Find if X is in A, if it is true print the message: "I found it"

    student submitted image, transcription available below

    Muestra el texto de la transcripción de la imagen
  • Chegg Logo
    Esta es la mejor manera de resolver el problema.
    Solución

    Program : *************************find.asm******************************************************************** .data #variable declaration section    #word =4 byte integer    #space reserve in memory of 5 elements 5*4 =20 bytes    A: .space 20    pr

    Mira la respuesta completa
    answer image blur
Texto de la transcripción de la imagen:
Ejercicio-2 Dado un arreglo A de 5 elementos y un valor X, ambos ingresado por teclado. Calcular: a) El mínimo elemento del arreglo b) Buscar si X está en A, si es verdad imprimir el mensaje: "lo encontré"