Question: Exercise 9 Developing Shell Scripts with functions 1 . Develop a script to prompt the user enter an integer, determine if the value is even

Exercise 9 Developing Shell Scripts with functions
1. Develop a script to prompt the user enter an integer, determine if the value is even or odd.
- Modify this program to use a function with one parameter called isEven
2. Prompt the user to enter A,B,C :
if A is entered print :This is A
if B is entered print :This is B
if C is entered print :This is C
- Modify the program to use a function with no parameters
- Repeat the program until the user enters an empty string
3. Modify the palindrome script to have a function with one parameter (the string to check)
The function returns 1 if the parameter is palindrome and 0 otherwise.
Test the newly created function
Due: Friday August 9, at 11:59 pm

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 Programming Questions!