
上QQ阅读APP看本书,新人免费读10天
设备和账号都新为新人
3.5 本章练习题
1. 请编程画出图3-14 所示的图形,画图的参数请自行设置,稍有偏差也没关系,画出类似的形状即可。
2. 请编程画出图3-15 所示的三角形,画笔的开始点位于坐标原点。

图3-14

图3-15
3. 请编程画出图3-16 所示的图形,画图的参数请自行设置,稍有偏差也没关系,画出类似的形状即可。
4. 请编程画出图3-17 所示的4 个圆,画图的参数请自行设置,稍有偏差也没关系,画出类似的形状即可。

图3-16

图3-17
5. 请编程画出图3-18 所示的倾斜的一条线段,线段的两个端点坐标分别是:(-39,49)和(50,-50),并把两个坐标都写出来。
6. 请编程画出图3-19 所示的五角星图形,画图的参数请自行设置,稍有偏差也没关系,画出类似的形状即可。

图3-18

图3-19
7. 请编程画出图3-20 所示的六边形,画图的参数请自行设置,稍有偏差也没关系,画出类似的形状即可。
8. 请编程画出图3-21 所示的正方体图形,画图的参数请自行设置,稍有偏差也没关系,画出类似的形状即可。

图3-20

图3-21
9. 请编程画出图3-22 所示的时钟图形,四个小时的刻度分别是12 点、3 点、6点、9 点,显示的时间是3 点整,画图的参数请自行设置,稍有偏差也没关系,画出类似的形状即可。

图3-22