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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started