COP 3767 - Operating Systems Professor: Michael Robinson e-mail : michael.robinson@fiu.edu program # 3f pgm3fCGS3767os This program is worth 10 points total. Partial credit will be given. 1 - Worth 1.5 points. Using Linux Shell Scripting. - Implement division by 0, with error trapping, using if and while() commands, How: - Append your name, current date and time to a NEW file called results.txt - Use a while loop. - If the user enters the value -99 for the first or the second number, you must exit the while loop immediately. - Ask the user to enter the first number. - Ask the user to enter the second number. - If the second number is ZERO inform the user and ask for a correct second number. - If the second number is NOT a zero, do the division, display all numbers in this computation using labels, and add them to the results.txt file. 2 - Worth 1.5 points. Do the same as question 1 using Windows Batch. 3 - Worth 1.5 points. Linux Shell Scripting. How: - Use a for loop from 1 to 100. - Find the results of calculating each number from (1 to 100 mod 5) + 2. - After the for loop ends, display the average for all previous results and append them to the results.txt file. 4 - Worth 1.5 points. Do the same as question 3 using Windows Batch. 5 - Worth 2 points. Linux Shell Scripting. Purpose of this program: - Create a 10 x 10 two dimensional array - Load each index in the array with the addition of each row + column location - Using printf display the content of each index, ALIGNED. - Create an algorithm that will add all the values in the diagonal indexes from top right to bottom left, and print the total. - Create an algorithm that will add all the values in the diagonal indexes from top left to bottom right, and print the total. - Print the addition of all values in each index in the array. 6 - Worth 2 points. Do the same as question 5 using Windows Batch. with a similar technique as printf Program submission ================== You need to submit: 1 LastNameFirstInitialpgm3.sh ex: RobinsonMpgm3.sh 1 LastNameFirstInitialpgm3.bat ex: RobinsonMpgm3.bat Make sure to rename the bat files to ba Zip all two files into one file and email it (the zip file). Do not forget to describe in your email's subject: Class Name, number or date-time, purpose ex: OS 1 pgm3 or OS 2 pgm3 Your email "From " must have your name Print the programs that you emailed and turn them into class on the due date.