作者giogio (少废话多做事)
看板b92902xxx
标题[不知] 诚徵季节作业一份
时间Mon Apr 18 18:59:47 2005
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 的信箱
或者
[email protected]
再次多谢 ^__^
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.31.138.49
1F:嘘 polaristin:为什麽我很想砍这篇文140.112.244.174 04/18
2F:嘘 in2:四千欧元? 140.112.90.74 04/18
3F:嘘 davidsky:我可以寄给你我写的assembler 自己写code~XD 140.112.30.82 04/18
4F:嘘 hkt:完了完了真的完了.... 140.112.30.82 04/18
5F:→ yrclamb:我还在想说怎麽没有评价...原来都被嘘了 XD140.112.244.175 04/18
6F:嘘 lorderic:...我只能说你完全走错地方了 59.112.213.136 04/18
7F:→ lfst:还是会有人给吧140.112.246.171 04/18
8F:→ lfst:价值不菲140.112.246.171 04/18
9F:嘘 Rabby250:四楼的,小心他发了你就完了 =_=+ 203.73.233.68 04/19
10F:嘘 acekoko:这... 无言ing... 连写作业都可以卖啊~~ 59.104.93.114 04/19
11F:推 godalmighty:我不知道为什麽没有人推荐这一篇?? 61.230.104.206 04/19
12F:→ lapras:巴哈也有人用800 NTD卖出简易小时钟啊 140.112.30.114 04/19
13F:嘘 shover:家教版也有这篇 202.178.191.13 04/19
14F:嘘 Iamia:="=凸140.112.222.211 04/20
15F:嘘 sskywind:补个嘘 =,=凸 140.112.30.116 04/25