Question: Write a PowerShell script that takes three parameters. If number of parameters passed to the script is not equal to 3, it prints a warning

Write a PowerShell script that takes three parameters. If number of parameters passed to the script is not equal to 3, it prints a warning message and displays a proper usage hint: "Usage: foo.sh param1 param2 param3". If 3 parameters are passed, the script should print some positive message.

Write a PowerShell script that asks user's year of birth and prints "Minor" if the user is younger than 21, "Senior" if the user is older than 65, "Workforce" otherwise.

Write a PowerShell script that plays guess-a-number game, shrinks the range with each guess, and counts attempts. Your program should correctly process a case when a user enters a number smaller than current min or greater than current max. In such cases an attempt counter should change, but the range must stay the same.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!