《《VB图形输出》导学案(3页).doc》由会员分享,可在线阅读,更多相关《《VB图形输出》导学案(3页).doc(3页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、-VB图形输出导学案-第 3 页VB图形输出导学案姓名:_技能操作目标:1、理解并掌握图形输出的基本算法2、掌握确定算法变量的方法口诀3、掌握常见图形程序代码的编写一、读程序,在方框中写出下列程序输出的图形Private Sub Command1_Click()ClsFor i = 1 To 5 For j = 1 To 9 Print *; Next j PrintNext iEnd SubPrivate Sub Command2_Click()ClsFor i = 1 To 9 For j = 1 To 9 Print *; Next j PrintNext iEnd SubPrivate
2、 Sub Command3_Click()ClsFor i = 1 To 9 Print Tab(i); For j = 1 To 9 Print *; Next j PrintNext iEnd SubPrivate Sub Command4_Click()ClsFor i = 1 To 9 Print Tab(i); For j = 1 To 10 - i Print *; Next j PrintNext iEnd SubPrivate Sub Command5_Click()ClsFor i = 1 To 9 Print Tab(i); For j = 1 To 10 - i If j Mod 2 = 1 Then Print *; Else Print #; End If Next j PrintNext iEnd Sub二、通用算法三、程序填空For i = 1 To For j = 1 To If Then Else Print $; End If Next j PrintNext i四、知识应用1、输出如下图形,请写出相应代码2、输出如下图形,请写出相应代码3、输出如下图形,请写出相应代码