Answered step by step
Verified Expert Solution
Question
1 Approved Answer
It is for PowerShell. It says that a couple of times right below this sentence. Using a FOR LOOP Using PowerShell ISE or VSCode, create
It is for PowerShell. It says that a couple of times right below this sentence.
Using a FOR LOOP
Using PowerShell ISE or VSCode, create a PowerShell script that does the following:
- Get the teacher name
- Store date/time in a variable
- Create a loop that asks for the following information
- Student Name
- Grade for quiz (numeric)
- After each entry, ask the user if they want to continue
- Validate the values are between 0 and 100 and not empty (null)
- Exit the program with an error message if the values are invalid
- If the score is below 60 (<60), then enter the students name and score in a comma delimited file called needsHelp.txt
- If the score is 90 or higher (>90), then enter the students name and score in a comma delimited file called bestOf.txt
- At the end of the script display the following information
- Teachers Name
- Todays Date
- Average score of scores entered
- Total number of As, Bs, Cs, Ds, Es
- Display the names and scores for the students from needsHelp.txt
- Display the names and score for the students from bestOf.txt
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