Categories: Uncategorized

POWERSHELL FUNCTIONS

Paper instructions

POWERSHELL FUNCTIONS:

1) Write a function called Get-DecimalNumber which will do the following:
• Test if the file conversions.csv exists, and if not display a warning message, create it and suppress all output to the console
• Validate user input as an integer (1-255) has been entered. If incorrect input is given display a message and exit.
• Convert the decimal input to hexadecimal and binary using string methods and display the result
• Send the output to a hash table and append to conversions.csv

Don't use plagiarized sources. Get Your Custom Essay on
POWERSHELL FUNCTIONS
For $10/Page 0nly
Order Essay

2) Write a function called Get-HexadecimalNumber which will to the following:

• Test if the file conversions.csv exists, and if not display a warning message, create it and suppress all output to the console
• Validate user input that as a hexadecimal number beginning with “0x” (0x2A). If incorrect input is given display a message and exit.
• Remove the “0x” from input and convert to decimal and binary. Display the result
• Send the output to a hash table and append to conversions.csv

3) Write a function called Get-BinaryNumber which will to the following:

• Test if the file conversions.csv exists, and if not display a warning message, create it and suppress all output to the console
• Validate user input that a binary number, string of 0’s and 1’s, was entered. If incorrect input is given display a message and exit.
• Convert the binary input to decimal and hexadecimal and display the result

• Send the output to a hash table and append to conversions.csv

admin

Recent Posts

Economic Debate #3- Progressive Income Tax – The Homework Helper

Economic Debate- Progressive Income Tax For this Economic Debate, we are going to discuss the…

2 years ago

MKT 6120 – Marketing Management – Davis Learning Engagement #7

TOPIC: Going Global Discussion Thread 1 (initial post due Wednesday for full credit) Please note:…

3 years ago

jvjvjhvjhvhjvj

Assignment Topic This week will culminate in the creation of a narrated PowerPoint to create…

3 years ago

Students are supposed to select a technological organization of their choice.

The Assignment must be submitted on Blackboard (WORD format only) via allocated folder. Assignments submitted…

3 years ago

Increases the risk of wildfires

you need to post your 2-page information flier to share with your Final Project Group.…

3 years ago

Statistics for Technology management

discussion: Discuss the methods used at your company to measure and ensure quality products and…

3 years ago