CMSI 655
Homework #1
Partial Answers
  1. TCP/IP is concerned with getting packets reliably from the source to the destination. An IP address uniquely identifies a device on the Internet. HTTP is an application-level protocol for accessing resources on the World Wide Web.
  2. This problem shouldn't have asked for HTML code, but since it did, I suppose the best way to answer is with a <style> element:
    <style type="text/css">
      h1 {
        font-style: italic;
        font-weight: bold;
      }
    </style>
    
  3. Another question asking for HTML code:
    <style type="text/css">
      p {
        font-family: Garamond, Bookman;
        text-indent: -30pt;
      }
    </style>
    
  4. ...
    <style type="text/css">
      .italic {
        font-style: italic;
      }
    </style>
    ...
    <body>
      <div class="italic">
        <p>Paragraph One</p>
        <p>Paragraph Two</p>
        <p>Paragraph Three</p>
      </div>
      ...
    <body>
    ...
    
  5. In the file teststyle.css
    p.sixteen {
      font-style: italic;
      font-height: 16pt;
      line-height: 32pt;
      /* or just
      font: italic 16pt/32pt;
      */
    }
    
    p.doublespace {
      line-height: 200%;
    }
    

    In an XHTML file

    ...
    <head>
      <link rel="stylesheet" type="text/css" href="teststyle.css" />
    </head>
    ...
    
  6. Will be done in class.
  7. From Hobbes:
    1. Richard White, with an encryption algorithm tatooed on his arm, 1995.
    2. The four "official" NAPs established by the NSF were in San Francisco, Washington, Pennsauken, and Chicago. There are also a number of MAEs which are essentially defacto NAPs (San Jose, two in Washington, Chicago, Los Angeles, Houston, and Dallas). The two FIX and one CIX exchanges are still running and also count as NAPs.
    3. The Harvard IMP was broadcasting zero-length packets so all other IMPs sent their traffic to Harvard
    4. A cable break cut off all of New England.
    5. The Internet backbone got its first OC48 link in January of 1999, at least that is what I determined from reading the vBNS reports for first quarter 1999 (which showed one) and fourth quarter 1998 (which did not).
  8. Here's a sloppy quick solution. (Technically the div's text-align property only works here since the content of the div is a single run of text. It would have been more accurate to use auto margins on the left and right, but we haven't learned that yet.)
    <?xml version="1.0" charset="utf-8"?>
    <!DOCTYPE html
      PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/XHTML1/DTD/strict.dtd"
    >
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <head>
        <title></title>
        <style type="text/css">
          body {
            background-color: white;
            text-align: center;
          }
          span.greeting {
            font-family: Arial;
            color: green;
          }
          span.strike {
            text-decoration: line-through;
          }
          span.warning {
            color: red;
          }
        </style>
      </head>
      <body>
        <div>
          <span class="greeting">Hey <span class="strike">um</span>
          <span class="warning"> oh</span></span>
        </div>
      </body>
    </html>
    
  9. The intraday high for the Dow Jones Industrial Average on 1929-09-03 was 386.10. It did not close above this value until 1954-11-26. That's over 25 years. But note that if you had 4% yearly inflation, $386.10 in 1929 dollars is $1029.28 in 1954 dollars. The DJI didn't hit 1029 until October of 1982, and in 1982 dollars your initial $386.10 is $3086.50. Ouch. We didn't get to 3000 until 1991. Let's guess that the answer is sometime in 1993, when our $386.10 is really $4751.53. Nope. Guess 1995, where inflation requires us to have $5139.25. Well the DJI got to 5200 in December 1995, so let's call that close enough. 66 years to recoup that investment. Can you wait that out?
  10. (b) It was <span style="font-weight:bold">not</span> me
    (big) It was <span style="font-size:larger">not</span> me
    (i) It was <span style="font-style:italic">not</span> me
    (small) It was <span style="font-size:smaller">not</span> me
    (strike) It was <span style="text-decoration:line-through">not</span> me
    (sub) It was <span style="vertical-align:sub">not</span> me
    (sup) It was <span style="vertical-align:super">not</span> me
    (tt) It was <span style="font-family:monospaced">not</span> me
    (u) It was <span style="text-decoration:underline">not</span> me
    

    Not all of these are deprecated because they are terribly common and convenient. They could be, though.