看板 b90902xxx 關於我們 聯絡資訊
Problem: Write a MIPS assembly language program to sort an integer array in ascending order, compute its average, and then print the results. There is a built-in twenty elements array: [ 8, 10, 19, 25, 7, 18, 22, 6, 9, 12, 2, 5, 23, 14, 28, 21, 11, 26, 1, 13 ] The MIPS program must do the following work: First, ask the user to input two integers a, b from keyboard console. ( a may be largerthan, or smaller than b) Truncate the array from element a to element b Sort the truncated array in ascending order. Compute the average of the numbers in the truncated array. Then print the results. Example: If the inputs are a= 12, b=7, the program generates a sub-array as [22, 6, 9, 12, 2,5]. Then the array is sorted, its average is computed. The sorted output [2, 5, 6, 9, 12,22] and the average= (2+5+6+9+12+22)/6=?? must be printed on the screen for examination. ㄜ...這是我學校要交的作業啦! 當然不可能請各位大大幫我寫這樣太機車了 ... 天底下沒白吃的午餐阿!! 所以....請各位大大來信洽詢...這是有酬勞的喔.... 我要交的東西當然就是程式碼還有把結果印出來就okla 順便開個價吧^__^ 對各位大大來說這應該只是舉手之勞吧?? 多謝樓!! 來信請洽 ptt id vikingss 的信箱 或者qooood@yahoo.com.tw 再次多謝 ^__^ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.31.138.49
ledia:你好可憐喔.. 花錢上學還得花錢買作業... 140.112.30.55 04/18
sparion:為了幫你省麻煩 我看我直接叫小陳把你當掉好了 59.115.145.103 04/22