Question: PowerShell # Leave all comments and instructions. # Put your PowerShell code below the problem description # in an uncommented line. # Run the following

PowerShell

# Leave all comments and instructions.

# Put your PowerShell code below the problem description

# in an uncommented line.

# Run the following code to set variables

$a = 5

$b = "Hello World"

$c = @("Alice", "Bob", "Charlie")

# Sample: Write a comparision to determine if 5 equals 6

# (The solution goes on the following line)

5 -eq 6

#a) Write a comparison to determine if $a is greater than 4

#b) Write a comparision to determine if $a is equal to 6

#c) Write a comparision to check if $b does NOT equal "Hi World"

#d) Write a comparision to check if $b starts with "Hello"

#e) Write a comparision to check if $b ends with "rld"

#e) Write a comparision to check if $c contains the name "Bob"

#f) Write a comparison to check if $c contains the name "Aaron"

#g) Write a comparison to check if

# $a is less than 10 and greater than 2

#h) Write a comparision to check if $a is exactly zero or greather than 3

#i) Write a comparison to check if $b's length is greater than 4 and starts with "H"

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!