Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using PowerShell ISE or VSCode, create a PowerShell script that will do the following: Ask for the users name Ask the user for a 2-digit
Using PowerShell ISE or VSCode, create a PowerShell script that will do the following:
- Ask for the users name
- Ask the user for a 2-digit number
- Validate this number is two numeric digits
- Take into account leading zeroes
- If the number is invalid, have the user try again
- Ask the user for a 3-digit number
- Validate this number is three numeric digits
- Take into account leading zeroes
- If the number is invalid, have the user try again
- Perform the following mathematical calculations on the numbers
- Multiply the two numbers
- Add the two numbers
- Subtract the two numbers (negative results are acceptable)
- Divide the two numbers
- Check for divide by zero
- Let the user know if this wont work
- Output the following information to the screen
- Name: users name
- First number: first number
- Second number: second number
- First number x second number: result
- First number + second number: result
- First number - second number: result
- First number / second number: result or error message if it cannot be done
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