Question: PART A - Given below--- Create a only a script for following: Use functions and read statements to take inputs.. 1. Takes input from the

PART A - Given below---

Create a only a script for following:

Use functions and read statements to take inputs..

1. Takes input from the user check for Even or Odd Number.

2. Take input from the user check for String is Equal or not.

3. Take input from the user check for Leap year or not.

4. Takes input from the user check for whether input is String

or Number or special character.Use Switch case with that.

Four functions to create in one script.

Call the functions using swtich case

#!/bin/bash

# write the comments-- name, date, descirption

function EvenOdd() {

...

}

function StringCompare()

# for the 2nd part..

# Take input from the user check for String is Equal or not.

# calling function either from within the script

EvenOdd

and other functions here.. within the script

...

chmod +x scriptname.sh

./scriptname.sh# used for running the script

Submit ->Word file showing the complete script (code) and the output from

calling the function.(5 screenshots would be required to answer this).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!