**** pgm4df_5OS_RUBRICS **** ------------------------------ program # 4 pgm4df_5OS_RUBRICS 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 ANSWER ------ touch lastNameFirstNameInitialpgm4.sh if the file name lastNameFirstNameInitialpgm4.sh was submit assume that the the student used the previous required command 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: ANSWER ------ the following data must be at the beginning of the student lastNameFirstNameInitialpgm4.sh file, it does not have to be identical it needs to identify their program ************************************************** Author : Student 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 ANSWER ------ <> results.txt total question 5 = 1.50 GOTO Question#6 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 :Question#6 -0.25 mkdir pgm4 -0.25 cd pgm4 -0.25 notepad one.txt -0.25 echo REM Cristal Ruiz >> one.txt -0.25 echo echo Cristal Ruiz >> one.txt -0.25 echo echo. >> one.txt total question 6 = 1.50 This Windows part total 3.00 total program 4 = 6.00 points Upload this program to Canvas and bring a printed and STAPLED(if needed) copy of this program on the due date.