OK I am not going to answer this for you but since you have honestly said that it is homework I will try and shove you in the right direction.
First dont panic the solution is not hard...
printing to screen :
print "Message\n"
This will print a message to the screen, the \n is the newline char and is required to ensure that it is displayed as you would expect.
reading in ip you have lots of alternatives check out <>
$Variable = <>
will read a line from stdin and place it in the variable $Variable it will have the newline char at the end so use chomp to remove it (look it up). For extra credit you could use a regexp and die to validate the input, look it up. Stick those two bits of info together and you have the first bit of your program. To produce the result look at for loops look at the node for loops for info about these, in short they will loop over a block of code a specific *say 10* times. The for loop, combined with a print will allow you to display the results. Ooh I spose I should mention that you can print variables thus:
print "The value in variable = $Variable\n"
I hope this helps, but not too much. All in all about 1/2 a dozen lines of code. This is not the optimal solution but hay ho if you wanted optimal you should have listened in those lectures.
--

Zigster

In reply to Re: Help I need to hand this in on monday. by zigster
in thread Reaped: Help I need to hand this in on monday. by NodeReaper

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.