24小时热门版块排行榜    

查看: 637  |  回复: 0

mit95

金虫 (小有名气)

[求助] 计算机科学导论作业,求帮助!需要答案代码!

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
http://q.gs/38aUd
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 mit95 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[硕博家园] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +4 N80hyqiqCeT2 2026-11-26 4/200 2026-11-28 10:47 by Equinoxhua
[论文投稿] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +3 p1TifTPkqG3A 2026-11-27 3/150 2026-11-27 19:44 by FlRlcTrDsDoO
[考博] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +3 p1TifTPkqG3A 2026-11-27 3/150 2026-11-27 19:26 by FlRlcTrDsDoO
[论文投稿] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +3 p1TifTPkqG3A 2026-11-27 3/150 2026-11-27 19:20 by XTPLXDTeEwbs
[博后之家] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +3 J9NGDvAaPB9L 2026-11-27 3/150 2026-11-27 18:53 by XTPLXDTeEwbs
[考博] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +3 J9NGDvAaPB9L 2026-11-27 3/150 2026-11-27 18:46 by XTPLXDTeEwbs
[论文投稿] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +3 N80hyqiqCeT2 2026-11-26 3/150 2026-11-27 18:03 by XTPLXDTeEwbs
[教师之家] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +6 Gp6vMAD5C53H 2026-11-26 7/350 2026-11-27 17:54 by HaAiYedD27eq
[教师之家] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +3 Gp6vMAD5C53H 2026-11-26 4/200 2026-11-27 17:47 by HaAiYedD27eq
[博后之家] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +6 mzU8LdVQMwOf 2026-11-26 8/400 2026-11-27 17:36 by HaAiYedD27eq
[找工作] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +5 mzU8LdVQMwOf 2026-11-26 5/250 2026-11-27 17:30 by HaAiYedD27eq
[找工作] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +7 1VHV9UkX7sid 2026-11-26 7/350 2026-11-27 17:21 by HaAiYedD27eq
[博后之家] 售SCI一区T0P文章,我:8.O55.1.O.54,科目全,可十急 +5 1VHV9UkX7sid 2026-11-26 7/350 2026-11-27 17:07 by HaAiYedD27eq
[教师之家] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +3 N80hyqiqCeT2 2026-11-26 3/150 2026-11-27 13:50 by aTZfRIGzowsS
[硕博家园] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +3 N80hyqiqCeT2 2026-11-26 4/200 2026-11-27 13:33 by aTZfRIGzowsS
[找工作] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +4 mzU8LdVQMwOf 2026-11-26 4/200 2026-11-27 13:26 by aTZfRIGzowsS
[考博] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +3 mzU8LdVQMwOf 2026-11-26 3/150 2026-11-27 13:05 by aTZfRIGzowsS
[考研] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +4 1VHV9UkX7sid 2026-11-26 4/200 2026-11-27 12:38 by aTZfRIGzowsS
[考研] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +3 mzU8LdVQMwOf 2026-11-26 3/150 2026-11-27 05:50 by p1TifTPkqG3A
[论文投稿] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +5 1VHV9UkX7sid 2026-11-26 7/350 2026-11-27 05:10 by jE6DD3S4jsZB
信息提示
请填处理意见