| 查看: 577 | 回复: 0 | ||
[求助]
计算机科学导论作业,求帮助!需要答案代码!
|
|
Exercise 1 Develop a data definition ManyNumbers which can store arbitrarily many numbers. Exercise 2 Develop a data and structure definition for storing pairs of numbers representing x and y coordinates. Exercise 3 Develop a data definition ManyPairs which can store arbitrarily many pairs of numbers using the data definition from the previous exercise. Exercise 4 Write the templates for all of the three data definitions you have defined. Exercise 5 Design a function, which, given ManyPairs, draws all of the points as circles with radius 10 on the same empty scene, producing the resulting image. Exercise 6 Design a function, which, given ManyPairs and two numbers for x and y coordinates, creates a larger ManyPairs with all of the coordinates plus the new pair of coordinates. Exercise 7 Using the functions you developed in exercise 5 and 6, design a big-bang program which places a circle on every mouse event at the location of the mouse event. Note that this is similar to, but not exactly the same as, the Challenge Exercise from |
» 猜你喜欢
一志愿211,化学学硕,310分,本科重点双非,求调剂
已经有15人回复
材料调剂
已经有12人回复
生物学308分求调剂(一志愿华东师大)
已经有15人回复
一志愿0703化学招61最终排名62化学求调剂
已经有7人回复
277、学硕,求调剂 数一104,
已经有10人回复
288环境专硕,求调材料方向
已经有37人回复
328求调剂
已经有12人回复
338求调剂
已经有6人回复
材料工程322
已经有13人回复
304求调剂(085602,过四级,一志愿985)
已经有25人回复















回复此楼