http:^^www.cs.washington.edu^education^courses^cse403^96sp^assign5.html

来自「This data set contains WWW-pages collect」· HTML 代码 · 共 102 行

HTML
102
字号
Date: Tue, 10 Dec 1996 16:47:10 GMTServer: NCSA/1.4.2Content-type: text/html<HTML><HEAD><TITLE>Assignment 5 - Maintenance</TITLE><!-- Created by: Adam Carlson,  20-May-1996 --><!-- Changed by: Adam Carlson, 22-May-1996 --></HEAD><BODY><H1>Assignment 5 - Maintenance</H1><H2>Introduction</H2>This assignment will give you experience modifying an existing code base toadd functionality.  You will each be given another group's implementation ofthe HTML formatter, as well as the design document for that system.  Yourassignment is to add the functionality described below and write up the issuesyou encountered.  The writeup will include what aspects of the program made iteasy to modify and what aspects made it difficult.  (This can includenon-design issues, like documentation, particularly if the program was<EM>well</EM> documented.)  It should also make recommendations describing howthe program could be made more modifiable, without changing the entire design.<H2>What to code</H2>Add the following functionality to the formatter:<OL>  <LI> Add the &lt;HR&gt; (horizontal rule) tag.  The &lt;HR&gt; tag goes to anew line (a la &lt;BR&gt;) and outputs a line of dashes (-) across the page.The &lt;HR&gt; tag does not need a &lt;/HR&gt; tag, and any &lt;/HR&gt; tagscan be ignored.  <LI> Add a LENGTH attribute to the &lt;HR&gt; tag.  If value of the lengthattribute is an integer, then the length of the line of dashes is<CODE>min(LENGTH, width of output)</CODE>, otherwise it is the width of theoutput.  <LI> Add a JUSTIFY attribute to the &lt;HR&gt; tag.  The JUSTIFY tag canhave the values LEFT or CENTER.  The horizontal rule is either left justifiedor center justified appropriately.</OL><H4>Some examples:</H4><PRE><EM>(1) Add &lt;HR&gt; tag</EM>DoOd! horizontal &lt;HR&gt; rulez.<EM>Is output as</EM>DoOd! horizontal--------------------------------------------------------------------------------rules.<HR><EM>(2) Add LENGTH attribute</EM>This is your invoice:&lt;UL&gt;&lt;LI&gt; Widgets...... $15.99&lt;LI&gt; Gadgets...... $12.97 &lt;HR LENGTH=30&gt;&lt;LI&gt; Total........ $28.96&lt;UL&gt;<EM>Is output as</EM>This is your invoice:  * Widgets....... $15.99  * Gadgets....... $12.97------------------------------  * Total......... $28.96<HR><EM>(3) Add JUSTIFY attribute</EM>This is your brain on invoice... &lt;HR LENGTH=30 JUSTIFY=CENTER&gt;AAAAAAAAAAAaaaaaaaaarrrrrrrrggghh!<EM>Is output as</EM>This is your brain on invoice...                         ------------------------------AAAAAAAAAAAaaaaaaaaarrrrrrrrggghh!</PRE><H2>What to write up</H2>The write up should include a discussion of what parts of the program neededto be modified to incorporate each new piece of functionality, what changes tothe interfaces between modules were necessary, and how well the design allowedfor change overall.  You should describe what changes you would make to theprogram to make it easier to modify, while keeping within the design.  I willforward your writeup to the group whose program you modified.<H2>Due Date</H2>May 31, 1996<HR><ADDRESS> <!WA0><A Name=Signature HREF=""http://www.cs.washington.edu/education/courses/cse403/96sp/>Adam Carlson</A></ADDRESS></BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?