CIS 2279 Homework Assignment #08
Due Mon Oct 31, 2016
Create a perl script named username-lab08.pl that has the following features:
- Prompt the user to enter the month and day of week. Print each
to the terminal as a capitalized three letter abbreviation (e.g. August == Aug).
- Prompt the user to enter their full name.
- Create a subroutine that accepts first and last name as
arguments and returns a lower case string comprised of
the entere 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.
See notes on subroutines in lab 6 for a reminder about how to pass arguments and return values.
- Print this returned username value to the screen.
- Print the returned username value in all upper case to the
screen.
- Print the returned username value in all lower case to the
screen.
- Print the returned username value to the screen with the first
and last characters lower case and all of the middle characters
all upper case.
- If the first three characters of the username contain a letter
"e" print some information about its status to the
screen.
- Prompt the user to enter at least five words.
- Split the entered string up so that each word is an
item in an array.
- Join the elements of the array with the "|"
character into a single lower-case string and print to the terminal.
- Capitalize each element in the array and print to the
screen
- Print to the terminal in all upper-case any word that at least
five characters long
solution
last updated: 27 Oct 2016 19:54