I been working on this forever can you please show fully how to create these 2 small scripts. It would be very appreciated! the editor im using is VI

1. Write a script called simple.sh to do the following:

Displays "There are no arguments" if no arguments were entered.
Displays "There are n arguments" if arguments were entered where n is the number of arguments.
Displays "The arguments are a, b, c" when arguments are entered and a, b, c are agrument1, argument2 etc.

Menu

a. Current date and time
b. Users currently logged in
c. Number of users logged in
d. Contents of current directory

Enter Choice..........

2. Write a shell script to implement the menu above. Call the script menu.sh

Execute the appropriate commands only when the user enters one of the menu choices. Display an error message such as "invalid choice" if the choice is not a, b,c, or d.
Remember that the read statement followed by a variable name will obtain input from the user.

Use the case structure to evaluate the choice entered.

1. Make both scripts executable.
2. Start the script command with lab8.txt as the file name.
3. Display the contents of the simple.sh script in 1 above with cat
4. Display the contens of menu.sh with cat.
5. Run simple.sh with no arguments
6. Run simple.sh with three arguments
7. Run menu.sh four times. first time select choice a, etc.
8. Run menu.sh and enter choice x

1. To create the "simple.sh" script, you can follow these steps:

Step 1: Open the VI editor by typing `vi simple.sh` in your terminal.

Step 2: Press the "i" key to enter insert mode in VI editor.

Step 3: Type or copy the following script into the editor:

```shell
#!/bin/bash

if [ $# -eq 0 ]; then
echo "There are no arguments"
elif [ $# -eq 1 ]; then
echo "There is 1 argument"
echo "The argument is $1"
else
echo "There are $# arguments"
echo "The arguments are $*"
fi
```

Step 4: Press the "Esc" key to exit insert mode.

Step 5: Type `:wq` and press "Enter" to save and exit the VI editor.

Now you have created the "simple.sh" script.

2. To create the "menu.sh" script, follow these steps:

Step 1: Open the VI editor by typing `vi menu.sh` in your terminal.

Step 2: Press the "i" key to enter insert mode in VI editor.

Step 3: Type or copy the following script into the editor:

```shell
#!/bin/bash

while true; do
echo "Menu"
echo "a. Current date and time"
echo "b. Users currently logged in"
echo "c. Number of users logged in"
echo "d. Contents of current directory"
read -p "Enter Choice.........." choice

case $choice in
a)
date
;;
b)
who
;;
c)
who | wc -l
;;
d)
ls -al
;;
*)
echo "Invalid choice"
;;
esac
done
```

Step 4: Press the "Esc" key to exit insert mode.

Step 5: Type `:wq` and press "Enter" to save and exit the VI editor.

Now you have created the "menu.sh" script.

To make both scripts executable, you can run the following commands:

```
chmod +x simple.sh
chmod +x menu.sh
```

To execute the scripts and perform the provided tasks, you can follow the steps provided below.

1. Start the script command with lab8.txt as the file name:
```
script lab8.txt
```

2. Display the contents of the "simple.sh" script:
```
cat simple.sh
```

3. Display the contents of "menu.sh":
```
cat menu.sh
```

4. Run "simple.sh" with no arguments:
```
./simple.sh
```

5. Run "simple.sh" with three arguments:
```
./simple.sh argument1 argument2 argument3
```

6. Run "menu.sh" four times, selecting different choices each time:
```
./menu.sh
```

7. Run "menu.sh" and enter choice 'x':
```
./menu.sh
Enter Choice.......... x
```

Please note that when executing the scripts, you may need to provide the appropriate file paths or navigate to the correct directory where the scripts are located.