Question: Write a Power Shell script that does the following: 1) Asks the user to input the size array $ArraySize to enter students marks 2) Display
Write a Power Shell script that does the following:
1) Asks the user to input the size array $ArraySize to enter students marks
2) Display the size of array of in message box with OK and Cancel button
3) If the user wants to change the array size he/she clicks Cancel, then he/she is asked to input the size of the array $ArraySize again
4) If the user clicks OK, he/she is asked to enter student marks $StudentMark
5) Check if $Count <= $ArraySize
6) Calculate Average Marks for class and display output in Message box
7) Request user if he/she wants to change a mark using Message box with YES NO button
8) If user clicks Yes button, ask user to input which student mark to change
9) Calculate new average mark and display new output in Message Box and end the program
10) If user clicks No button, end the program
Thank you
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
