📄 http:^^www.cs.bu.edu^faculty^heddaya^cs111^hw^02.html
字号:
Date: Tue, 14 Jan 1997 23:00:21 GMTServer: NCSA/1.5Content-type: text/html <HTML> <HEAD><TITLE>BU CLA CS 111: Intro CS I---Homework 2 </TITLE></HEAD> <BODY> <H2> <!WA0><A href="http://web.bu.edu/pagetwo.html">BU</A>CLA <!WA1><A href="http://cs-pub.bu.edu/">CS</A> 111: <!WA2><A href="http://www.cs.bu.edu/faculty/heddaya/CS111/home.html">Intro CS I</A>--- <!WA3><A href="http://www.cs.bu.edu/faculty/heddaya/home.html">A. Heddaya</A>---Fall 1994 </H2> <H2>Homework 2---due Tue 94.09.27 </H2> <HR>Unless otherwise noted, please submit a listing of each program youwrite for this homework, and <EM>one</EM> script that shows that allof your programs compile properly, and run as intended.<P>Problems labelled as "Extra-credit/Honors" are required only of honors students, and are optional for everyone else.<P>As usual, homeworks are due at the beginning of class. <OL> <LI>The following program writes a large letter <CODE>I</CODE> on thescreen:<PRE> #include <stdio.h> #define HEIGHT 17 main() { int i = 0; printf("\n\nIIIIIII\n"); while (i < HEIGHT) { printf(" III\n"); i = i + 1; } printf("IIIIIII\n\n\n"); }</PRE> <OL> <LI> Type, compile, and run this program <LI> Describe in a sentence or two of your own words what the program does. <LI> Write a similar program that prints a large letter <CODE>C</CODE> on the screen. </OL><P> <LI><STRONG>(Extra-credit/Honors)</STRONG><BR>Write a program that prints an <CODE>X</CODE> (the letter) that is 25 lines high, using as few <CODE>printf</CODE> statements as you can.<P> <LI>[KP92, page 35, problem 4]<BR>In this problem, you need only submit a hand-written list of the compilation errors generated as a result of <EM>each</EM> of the six modifications.<P> <LI>[KP92, page 39, problem 12]<P> <LI><STRONG>(Extra-credit/Honors)</STRONG><BR>[KP92, page 39, problem 13]<P> </OL> <PRE><HR><EM><!WA4><A href="http://www.cs.bu.edu/faculty/heddaya/home.html">Abdelsalam Heddaya</A><BR>Created: 1994.09.19<BR>Updated: 1994.09.26 </EM></PRE> </BODY> </HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -