please answer all questions
Purpose: Learn the differences between writing a Bourne shell script and Java program. Learn how to use command argument in a Bourne Shell script. Learn how to compile and run Java and C programs in Unix terminal. Part A: Please complete the tasks in following table step by step and finkl the qqestions below the table. Step 1: Go to your home directory (ed -) and create a new file named as foosh (vi foesh or aane foesh), then inclade following lines in your foesh. Step 2: Save your file and exit editor: Step 3: Try following command to make simples, sh executable. Schmod atx foosh Step 4: Execute this file by invoking its name. S.Jeo.sh Note: whon ongiog the shell seript in yuur terminal, please be wry cangfal of the spoces. Questionst 1)Attach a serecnshot of the ouput in step 4 . 2) Describe what dees the shell seript foosh do? Part B: Step 1: Edit your foosh and change -le 3 to -le 51 Step 2: When finished, save the foosh and exit editor. Then try executing it again by typing following command. S./foo.sh 4 Oucstion: Attacha screcnshot of the output. Part C: Step 1: Edit your foo.sh in part B by making following modifications: - Add two new lines below between line " i=1 and line "while [ Si -le $1 |" echo please Input a number read num - Change " -le $1 to " -le Snum ". Step 2: When finished, save the foosh and exit editor. Then try executing it again by typing following command and type 4 as the input of the number. S./foo.sh Oucstion: Altacha sereenshot of the output. Part D: Write a Java program named foo.java to accomplish the same task as that in foo.sh of Part A. Note: If you want to run your Java program in Itrminal, - to compile foo java, please try Sjavac foo.java - To execule it, please try Sjava foo 3 int main (rotat) ratstin 77? Step 2: Sars your file and cuit affitar. Stsp 3: Cuntile and lini the hella c prognan by liellowity sromant. Ser twing. ciekiniv of ad itef Bubaen Qaestieasi atler this suenmanil? Sre -e hrilla hrilise 5) Try coennamd holiow and antarh in screcniber of the aspor s. hurtla mane is Janly?: Stamssian - Int abi of the drophes in the M.iellere nutere tate_.P2 JimYinali