1) Write Bash commands for the following questions and develop in a linux terminal like Mobaxterm.
2) This is an undergraduate class, don ot exceed limits and use complicated commands , shortcuts, or fancy language. Please stick to the undergraduate level difficulty.
3) Please do each question in seperate file.
4) For each question please provide all the commands and coding required and also a screen shot of the bash script file. That way I will know that when Implement the commands on my linux terminal they will work.
4) Stick to the deadline.
C/C++ Programming in a UNIX Environment, CS 3377, Problem Set 03 Submit as four shell script files that can be run. [25X4] 1. Write a bash script that copies all files of the current directory into a new sub-directory, and then deletes the created sub-directory along with its contents and displays a message that indicates completion of the task. 2. Write a bash script that reads two numbers x and y and performs addition, subtraction, multiplication, and division of the two numbers (x+y, x-y, x*y, x/y) and prints out each of these values along with some text to indicate what these numbers are. 3. Write a script that generates two random numbers between -5 and 25, calculates their average, and if the average is greater than 10 then prints “High Average” else prints “Low Average”. You can use $RANDOM to generate the random numbers. 4. Write a script using the for-loop construct that counts the number of directories looping through the files in the directory name provided by the user on a prompt by the script.