Answered step by step
Verified Expert Solution
Question
1 Approved Answer
George is back again. He wants you to set up the folders for the next semester. You have a plan so that he can set
George is back again. He wants you to set up the folders for the next semester. You have a plan so that he can set the folders up himself. You will create a PowerShell script that will allow him to set up his own folders and then he will not come to you every semester. You talk to George about how he wants the folders set up and he provides the following information;
The semester folder will be under the Documents folder
The top level be the semester ie Spring
Under the semester folder, there will be folders for each class he is taking
Under each class, there will be folders for Assignments and Notes
You are going to write a script to ask him for the semester and then for each of the courses he is taking that semester. For each course, you will build the directories Notes and Assignments. The pseudocode below describes the steps needed in the script
Ask for the semester and build a directory for the semester under the Documents folder
Ask for the first course to set up
Create a directory for the course under the semester's directory and create subdirectories called Assignments and Notes under each course directory.
Ask for the next course to add. If the course entered is "end", you are done. If it is not end, go back to step
Display the tree structure of the completed semester directory
Display a message saying "All Done, See you next semester" at the end of the script
Include documentation in the script explaining what it does. Run the script and take a screen shots showing the running of the script. Copy the the text for the script into the word document so that I can see the completed script. I will be testing the script.
HINT the pseudocode for this is in the weekly module, please review before starting assignment.
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