Question: Setup To get this project started please create an scores text file (outside of powershell) that has teams and scores (make up the scores) We
Setup To get this project started please create an scores text file (outside of powershell) that has teams and scores (make up the scores) We will use this txt file later
Example scores txt file should look like the sample below (you can pick the teams and make up the scores (make sure there is a Michigan or MSU in each example score))
Michigan vs MSU 25, 24
Michigan vs MSU 21, 28
Michigan vs Broncos 21, 14
MSU vs Ohio State 21, 7
**********************************************************************************************************************
In Powershell
A. create a new directory "wolverine" with a subdirectory "maize"
B. create a new directory "sparty" with a subdirectory "green"
1) Create a loop and pipe in the attached sample scores text file you created (loop to read all the scores in the made up scores txt file)
2) Read the scores in the txt file by school and determine if MSU or Michigan won or lost
3) Put the score into its own win file (ex if Michigan plays MSU and Michigan wins > add the score to a Michigan win.txt file & MSU loss.txt file
NOTE: you must change the permission on the file in order to write to it
*** the file permission switching must be done in separate script ***
Setup To get this project started please create an scores text file (outside of powershell) that has teams and scores (make up the scores) We will use this txt file later
Example scores txt file should look like the sample below (you can pick the teams and make up the scores (make sure there is a Michigan or MSU in each example score))
Michigan vs MSU 25, 24
Michigan vs MSU 21, 28
Michigan vs Broncos 21, 14
MSU vs Ohio State 21, 7
**********************************************************************************************************************
In Powershell
A. create a new directory "wolverine" with a subdirectory "maize"
B. create a new directory "sparty" with a subdirectory "green"
1) Create a loop and pipe in the attached sample scores text file you created (loop to read all the scores in the made up scores txt file)
2) Read the scores in the txt file by school and determine if MSU or Michigan won or lost
3) Put the score into its own win file (ex if Michigan plays MSU and Michigan wins > add the score to a Michigan win.txt file & MSU loss.txt file
NOTE: you must change the permission on the file in order to write to it
*** the file permission switching must be done in separate script ***
4) please zip contents of wolverines and sparty directories
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
