Question: I'm needing help creating a PowerShell program that will do the following: Using a while loop, please include the following information. The overseeing teacher's name
I'm needing help creating a PowerShell program that will do the following:
Using a while loop, please include the following information.
- The overseeing teacher's name - Wood
- Todays date
- Ask for test scores from a final exam that 10 students took. (The students are Stephen, Dana, Grant, Myles, Luna, Katie, Mira, Tommy, Laurel, and John)
- If a user fails, (< 60) then enter the students name and pass this out to text file called needsHelp.txt (6 users failed - Katie, Laurel, Mira, Myles, Tommy, and John)
- If a user passes with flying colors (> 90) then enter the students name and pass this out to a text file called bestOf.txt (4 users passed -Dana, Stephen, Grant, and Luna))
- Scores must be between 0 and 100
- Scores cannot be null
- Have the user enter a sentinal value to quit
- At the end of the program display the following:
- The overseeing teacher's name - Wood
- Todays date
- Average score
- Total number of As, Bs, Cs. (there should be a total of 10)
- Display lists of names of the students who didnt pass the test
- Display lists of names from the bestOf.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
