Homework : Find Second Minimum Value In this homework you will implement a MIPS application which finds the second minimum value in the declared array. Below how an integer array can be defined is given. Edit Execute Second Smallest.asm | data #example input values: .vord 13, 16, 16, 7, 7 #array contents size: # Your code wil1 be tested with various inputs vord S #aize of the array .text thzite your code below #if you find the second saallest print it #it all the numbers in the array are the same print "No second smallest" values contains the array elements and size describes the lengthofthe array Some example arrays and expected output are given below: Аray:[ 13, 16, 16, 7,7] Your ouput: 13 Array: [ 8, 8, 8] Your ouput: There is No Second Smallest Array: [ 7, 7, 6] Your ouput: 7 Array: [ 8, 7] Your ouput: 8 Array: [3, 3, 5, 3, 3, 5] Your ouput: 5

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter6: Using Arrays
Section: Chapter Questions
Problem 1E
icon
Related questions
Question

please send all codes

Homework : Find Second Minimum Value
In this homework you will implement a MIPS application which finds the second minimum value
in the declared array. Below how an integer array can be defined is given.
Edit Execute
Second Smallest.asm
data
#ехапр1е input
values: .word
13, 16, 16, 7, 7 #array contents
.word 5 #size of the array
# Your code will be tested with various inputs
size:
text
thrite your code below
#if you find the second smallest print it
#if all the numbers in the array are the same print "No second smallest"
values contains the array elements and size describes the length ofthe array
Some example arrays and expected output are given below:
Array: [ 13, 16, 16, 7, 7]
Your ouput: 13
Array: [ 8, 8, 8]
Your ouput: There is No Second Smallest
Array: [ 7, 7, 6]
Your ouput: 7
Array: [ 8, 7]
Your ouput: 8
Array: [3, 3, 5, 3, 3, 5]
Your ouput: 5
Transcribed Image Text:Homework : Find Second Minimum Value In this homework you will implement a MIPS application which finds the second minimum value in the declared array. Below how an integer array can be defined is given. Edit Execute Second Smallest.asm data #ехапр1е input values: .word 13, 16, 16, 7, 7 #array contents .word 5 #size of the array # Your code will be tested with various inputs size: text thrite your code below #if you find the second smallest print it #if all the numbers in the array are the same print "No second smallest" values contains the array elements and size describes the length ofthe array Some example arrays and expected output are given below: Array: [ 13, 16, 16, 7, 7] Your ouput: 13 Array: [ 8, 8, 8] Your ouput: There is No Second Smallest Array: [ 7, 7, 6] Your ouput: 7 Array: [ 8, 7] Your ouput: 8 Array: [3, 3, 5, 3, 3, 5] Your ouput: 5
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
Public key encryption
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning