subject
Engineering, 22.02.2020 03:40 elijahedgar876

Implement a MIPS assembly language program that defines main, readArray, printArray, and modifyArray procedures/functions. The readArray takes an array of integers as its parameter, asks a user how many numbers will be entered, then reads in integers from a user to fill the array. The printArray takes an array of integers as its parameter, prints each integer of the array. The modifyArray procedure/function takes parameters of arrays of integers, and also asks a user to enter two integers, and decide which one is larger and which one is smaller. Then it goes through each element of the array, and if it is larger than the maximum of two integers, it subtracts the maximum value from it, and if it is smaller than the minimum of two integers, it adds the minimum value to it. The main procedure/function asks a user to enter how many times the operation should be repeated, then it calls readArray function to populate the array, calls printArray to print out its original content, calls modifyArray to change it content, then calls printArray again to print out its result content.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 03.07.2019 15:10
Two flowing streams of argon gas are adiabatically mixed to form a single flow/stream. one stream is 1.5 kg/s at 400 kpa and 200 c while the second stream is 2kg/s at 500 kpa and 100 ? . it is stated that the exit state of the mixed single flow of argon gas is 150 c and 300 kpa. assuming there is no work output or input during the mixing process, does this process violate either the first or the second law or both? explain and state all your assumptions.
Answers: 1
question
Engineering, 04.07.2019 18:10
Asingle-geared blanking press has a stroke of 200 mm and a rated capacity of 320 kn. a cam driven ram is assumed to be capable of delivering the full press load at constant force during the last 15 percent of a constant-velocity stroke. the camshaft has an average speed of 90 rev/min and is geared to the flywheel shaft at a 6: 1 ratio. the total work done is to include an allowance of 16 percent for friction a) estimate the maximum energy fluctuation b) find the rim weight for an effective diameter of 1.2 m and a coefficient of speed fluctuation of 0.10
Answers: 1
question
Engineering, 04.07.2019 18:10
Different types of steels contain different elements that alter the characteristics of the steel. for each of the following elements, explain what the element does when alloyed with steel.
Answers: 2
question
Engineering, 04.07.2019 18:10
Compute the pressure drop of 30°c air flowing with a mean velocity of 8 m/s in a circular sheet-metal duct 300 mm in diameter and 15 m long. use a friction factor, f 0.02, and pair = 1.1644 kg/m a. 37.26 pa b. 25.27 pa n c. 29.34 pa d. 30.52 pa
Answers: 1
You know the right answer?
Implement a MIPS assembly language program that defines main, readArray, printArray, and modifyArray...
Questions
question
English, 23.11.2020 06:30
question
Spanish, 23.11.2020 06:30
question
Social Studies, 23.11.2020 06:30
question
Biology, 23.11.2020 06:30
Questions on the website: 13722361