Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help creating a PowerShell program that uses the FOR loop which will allow me to do the following: An overseeing teachers name -
I need help creating a PowerShell program that uses the FOR loop which will allow me to do the following:
- An overseeing teachers name - Wood
- Todays date
- Ask for test scores from a final exam that 10 students took (Stephen, Dana, Grant, Luna, Mira, John, Tommy, Laurel, Myles, and Katie)
- If a user fails, (< 60) then enter the students name and pass this out to text file called needsHelp.txt (6 failed: Mira, Katie, Laurel, John, Tommy, and Luna)
- 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 passed, Stephen, Dana, Myles, and Grant)
- 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 10 scores)
- 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
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