Warning: Undefined array key "PATH_TRANSLATED" in /mnt/web/export/courses/cs5045/fall_2002/handouts/programs/program1.php on line 3
CS 5984: Programming Assignment 1
CS 5984: Computation for the Life Sciences

Fall Semester, 2002
Programming Assignment 1

This programming assignment is worth 40 points.

You should email your Perl script to heath@vt.edu with subject "Programming Assignment 1" by 5:00PM on September 11, 2002. No late submission will be accepted.

Write and submit a Perl script named interact with the following interactive behavior.

  1. Ask for the name of the person running the script and save it in a variable $name.

  2. Ask for the date when the script is being run and save it in a variable $date.

  3. Ask for the name of the computer where the script is being run and save it in a variable $computer.

  4. Construct a variable $message that includes each of the three pieces of information above on a separate line.

  5. Send an email to yourself (not me!) with subject the name of the script and body $message.

  6. Print $message to the screen followed by "Goodbye" in your native language.


This page was last modified at 12:00 AM UTC, on January 1, 1970.

Current time at Virginia Tech is 2:36 PM UTC, on May 4, 2024.

Please report any problems found in these pages by email to: Lenwood S. Heath.