| 查看: 580 | 回复: 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 |
» 猜你喜欢
2026年申博-电池方向
已经有9人回复
窗边初夏的小雨
已经有3人回复
急招2026年9月份入学博士
已经有4人回复
26年申博自荐-计算机视觉
已经有4人回复
导师各种操作恶心咋办
已经有8人回复
2026博士申请求助
已经有5人回复
研究生做的很差,你们会让毕业吗?
已经有11人回复
求碳排放博导;方向是LCA、生命周期可持续发展以及碳排放
已经有7人回复
2026博士或科研助理转27年博士
已经有7人回复
国自科送审了吗
已经有11人回复













回复此楼