CIS 2279 Homework Assignment #08

Due Mon Oct 31, 2016

Create a perl script named username-lab08.pl that has the following features:

  1. 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).
  2. Prompt the user to enter their full name.
  3. 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.
  4. Print this returned username value to the screen.
  5. Print the returned username value in all upper case to the screen.
  6. Print the returned username value in all lower case to the screen.
  7. 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.
  8. If the first three characters of the username contain a letter "e" print some information about its status to the screen.
  9. Prompt the user to enter at least five words.
solution

last updated: 27 Oct 2016 19:54