program # 4 pgm4df_5OS Professor: Michael Robinson e-mail : michael.robinson@cs.fiu.edu Web Page : cs.fiu.edu/~mrobi002 This assignment is worth 6 points total, partial credit will be given, ******************************************************************** * USE UBUNTU TERMINAL MODE COMMANDS ONLY * * DO NOT USE ANY EDITORS TO CREATE THIS PROGRAM * * All work to be done using material taught in our class ONLY. * ******************************************************************** 1) Worth 0.25 Create a file called lastNameFirstNameInitialpgm4.sh ex: robinsonMpgm4.sh 2) Worth 0.25 Append to the above file the necessary commands that when this file is executed it will display the following: Using your own set of multi-line comments enter your program identification as described in the Syllabus, example: ************************************************** Author : Your Name Course : Course Name and Times Professor: Michael Robinson Program : Program Number, Purpose/Description A brief description of the program Due Date : mm/dd/yyyy I certify that this work is my own alone. ************************************************** 3) Worth 2.50 Append to the file the following commands that when this file is executed it will do the following: a) Display Hello my name is: yourName b) Display My user name is: your OS user name c) Display Todays date and time is: current date and time d) Display This file has x lines e) Display This file has x words f) Display this file has x bytes g) Display Please enter any number h) Display Your number $number * 2 = XXX and display press any key to continue i) Display a new clean screen j) Display Enter a line of numbers, leaving one space between each number k) Using enhanced for loop, display all numbers entered delaying the output of each number by 1 second each and then the total of adding thoses numbers: ex: 20 5 3 = 28 L) Using a while true loop request, accept and display data until it ends on input mod 5 = 0 using -lt and -gt comparison commands this question also uses if else commands ******************************************************************** * USE WINDOWS BATCH TERMINAL MODE COMMANDS ONLY * * USE ANY EDITORS TO CREATE THIS PROGRAM * * All work to be done using material taught in our class ONLY. * ******************************************************************** 4) Worth 0.25 Append to the above file the necessary commands that when this file is executed it will display the following: Using your own set of multi-line comments enter your program identification as described in the Syllabus, example: ************************************************** Author : Your Name Course : Course Name and Times Professor: Michael Robinson Program : Program Number, Purpose/Description A brief description of the program Due Date : mm/dd/yyyy I certify that this work is my own alone. ************************************************** 5) Worth 1.25 points. Windows batch Scripting. Using the NOTEPAD editor, append to the *.bat file, all the commands needed so that when you execute your bat file, this file will produce the following: a) Use a for loop from 1 to 10. b) Find the results of calculating each number from (1 to 10 mod 6) + 2. c) After the for loop ends, display the average for all previous results and append them to the results.txt file. 6) Worth 1.50 points. Using Windows teminal mode commands ONLY Using the NOTEPAD editor, append to the *.bat file, all the commands needed so that when you execute your bat file, this file will produce the following: a) Create a directory called pgm4- b) Go to folder pgm4 c) Create a file called one.txt d) Insert into the one.txt file your name using a single line comments e) Insert into the one.txt file the command that will display your name f) Insert into the one.txt file the command that will display one empty line Upload this program to Canvas and bring a printed and STAPLED(if needed) copy of this program on the due date.