Question: 2) (10 points) The following Bourne shell script and C program can accomplish the same task: read a character from user's input and check if

 2) (10 points) The following Bourne shell script and C program

2) (10 points) The following Bourne shell script and C program can accomplish the same task: read a character from user's input and check if a character is a VOWEL or CONSONANT while ignoring case sensitive A sample of the output is like below: Please enter a character: E E is a VOWEL Shell script C program # ! /bin/bash include int main () echo "Enter a character: " read char ch printf ("Enter a character: ") scanf ( then case ch in echo "ch is a VOWEL" if ( //check for VOWEL or CONSONANT switch (ch) esac fi case 'A case 'E case'I' case 'O case 'u case 'a': case 'e case 'i': case 'O case 'u' default: print f("%c is a CONSONANT . In",ch)

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