Download - Lab7 Game of Life
Transcript
![Page 1: Lab7 Game of Life](https://reader031.vdocuments.pub/reader031/viewer/2022013105/56812b5e550346895d8f8230/html5/thumbnails/1.jpg)
Lab7Game of Life
任课教师 :戴开宇 TA: 时均帅、谭肖、王安华程序设计 B班 2007-10-18 15:20-16:50(90 分钟 )
![Page 2: Lab7 Game of Life](https://reader031.vdocuments.pub/reader031/viewer/2022013105/56812b5e550346895d8f8230/html5/thumbnails/2.jpg)
2本次 lab课的安排
Homework 讲评 (10 分钟 )—谭肖Lab6 讲评 (10 分钟 )—时均帅Lab7-Game of Life- 时均帅
题目要求说明及答疑 (15 分钟 ) 程序编写 (40-55 分钟 ) 题目一 (打印两个图形 )本次 lab 下课前完成并上传 题目二 (生命游戏 )目前读懂给出的相关代码 ,在学完 GUI 编程之后做一个二维图形显示的程序,上传的具体时间另行通知
![Page 3: Lab7 Game of Life](https://reader031.vdocuments.pub/reader031/viewer/2022013105/56812b5e550346895d8f8230/html5/thumbnails/3.jpg)
3Lab6讲评语法部分
for 语句的写法 if…else… 奇数的判断方法
» RandomNum%2!=0 » RandomNum%2 ==1 X (负数的情况 ?)
”==”与” =”的区别» a+b+c=number X
算法部分 随机数的取法 质数的判断方法 和数的求解(一个数分成两个或者三个数之和)
![Page 4: Lab7 Game of Life](https://reader031.vdocuments.pub/reader031/viewer/2022013105/56812b5e550346895d8f8230/html5/thumbnails/4.jpg)
4Lab7目标
考察部分控制语句的使用考察对方法的理解通过阅读代码理解数组的使用提高阅读和编写代码的能力学习程序的设计框架加深对程序设计方法的理解
![Page 5: Lab7 Game of Life](https://reader031.vdocuments.pub/reader031/viewer/2022013105/56812b5e550346895d8f8230/html5/thumbnails/5.jpg)
5Lab7题目
题目一、使用循环控制结构打印图形 九九乘法表 数字菱形
题目二、生命游戏
» 题目详细要求参见文档 -lab7题目要求
![Page 6: Lab7 Game of Life](https://reader031.vdocuments.pub/reader031/viewer/2022013105/56812b5e550346895d8f8230/html5/thumbnails/6.jpg)
6Lab7上传
ftp:// 学号: [email protected]/classes/07/071 程序设计 B/WORK_UPLOAD/lab7/
在以上路径下以学号 +姓名命名建立文件夹题目一截止时间 :本次 lab 课结束时