locked
No here thinks its possible to solve this powershell problem. Can you do it? RRS feed

  • General discussion

  • Scripting Task #1

    Due on or before Monday 10/8/18

    Completing the task earns 5 points

    earn bonuses of up to 15 points

    Create a script that reads input from the user. Collect their name and birthday

    Output to the screen: Hello <NAME> you are <DAYS> days old!

    Example output: Hello Brian Clark you are 13918 days old!

    Commands used:

    Read-Host

    Write-Host

    New-Timespan

    Get-Date

    Get-Help / Get-Help <cmd> -online

    Bonus:

    1) Calculate and output the age in years instead of days (2 points)

    2) Format years as a whole number with no decimal places (3 points)

    3) Ensure <Name> is in green text and <Days> or <years> is yellow (5 points)

    4) ensure birthday is an actual date and error if not (5 points)

    Friday, October 5, 2018 2:21 PM

All replies