INFO 8026 Assignment 1
INFO 8026 Assignment 1
Requirements
For this assignment you are expected to come up with a simple scenario (one that
we haven’t covered in class already) and then write a PowerShell script based on
that scenario.
The following are the things you need to make sure to include in your scenario
and, therefore, incorporate into your script as well. Make sure that your script
accomplishes the following:
• Asks the user to provide input for two things
• Creates and uses at least 4 variables: 2 strings and 2 numeric
• Uses decision making (i.e. if statements), two times
• Makes use of a pipeline
• Writes or exports data to a file
• Displays a message to the user informing him/her that the processing is
completed and, also, letting the user know the name of the file to which
the data is saved.
Notes:
• Remember to use variables (vs. hardcoding values) whenever it makes sense.
• Use full names for commands and parameters. Do not use aliases.
• Important: You are expected to use the programming standards and
commands covered in class.
• Make sure your code is well-formatted and well-documented with comments,
as per the good coding practices we discussed in class:
❑ Include the comments explaining what your script accomplishes and that
document individual lines and/or sections of the code by explaining what
they address. The header comments must explain the problem scenario in
detail.
❑ Ensure that your code looks clean and professional: use indentation and
white space so that the code is easy to read. Remove any lines of code that
are not needed.
❑ Make sure that you test your program before you submit it!
❑ Make sure to review the INFO-8026 Programming Checklist.