CIS 2279 Homework Assignment #08
Due Sun, Oct 26,
2008
All files created must be saved in your class directory
/mnt/homes/CLASSES/CIS2279/<username>
- Create a perl script named lab08.pl in your user directory. The
script that has the following features:
- Prompt the user to enter their full name (on one line)
- Capitalize the entered first and last name and store in separate
variables.
- Create a subroutine that returns a lower case string
comprised of the entered
last name and first initial as a single word (ie. "Mark Tucker"
would be returned as "tuckerm") when passed the first and last name as arguments.
Print this returned value to the screen.
- Prompt the user to enter the current month.
- Store in a variable the current month as the first three
characters of the entered month converted to upper case.
- Prompt the user to enter the current day of the week.
- Convert the day of the week to all lower case.
- Print the month variable, the weekday and the userbname to the
screen with some descriptive text using one print statement.
answer (one of many)
last updated: 21 Oct 2008 21:36