CIS 2279 Homework Assignment #11

Due Mon Nov 14, 2016

Create a perl script named lab11.pl. The script needs to have the following features:(5 points each)

  1. Have the user enter a date (YYYY MM DD)
  2. Calculate the date/time six days fourteen hours in the future from the entered date and print it in a human readable format.
  3. Calculate the date/time 45 days in the past from the entered date and print it in a human readable format.
  4. Calculate and display, in minutes, the difference between the entered date and the present time.
  5. Prome the user to enter a path and list the size and creation time (in human readable format) for each file or directory contained in the requested directory.
  6. Prompt the user to enter their birth date. With that date, convert and display their age in days and hours to the terminal.
solution

last updated: 10 Nov 2016 18:34