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
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