3 functions in PowerShell
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
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
You can place an order similar to this with us. You are assured of an authentic custom paper delivered within the given deadline besides our 24/7 customer support all through.
Latest completed orders:
# | topic title | discipline | academic level | pages | delivered |
---|---|---|---|---|---|
6
|
Writer's choice
|
Business
|
University
|
2
|
1 hour 32 min
|
7
|
Wise Approach to
|
Philosophy
|
College
|
2
|
2 hours 19 min
|
8
|
1980's and 1990
|
History
|
College
|
3
|
2 hours 20 min
|
9
|
pick the best topic
|
Finance
|
School
|
2
|
2 hours 27 min
|
10
|
finance for leisure
|
Finance
|
University
|
12
|
2 hours 36 min
|