Question: *** This should all be done in a loop in PowerShell *** Before beginning, create a simple text file with three weeks of scores between
*** This should all be done in a loop in PowerShell ***
Before beginning, create a simple text file with three weeks of scores between Michigan and Michigan State. Example:
UM21, MSU 14
UM28, MSU 35,
UM33, MSU 27
1) Create a loop and read in the attached text file
2) Read the scores by school and determine if MSU or Michigan won or lost
3) - if the wolverines win, have user put the score into the win file (win.txt)
** UM win over MSU55-10 **
- if the wolverines encounter a loss, put the score in the loss file (loss.txt)
** wolverines lose to spartans 24-17 **
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
