Computer Science, asked by dachapallytarun, 4 months ago

I'm trying to search $states with the value Mississippi Alabama Texas Massachusetts Kansas. The script should perform the following tasks:

Search for a word in $states that ends in xas. Store this word in element 0 of an array named $statesArray.

Search for a word in $states that begins with k and ends in s. Perform a case-insensitive comparison. Store this word in element 1 of $statesArray.

Search for a word in $states that begins with M and ends in s. Store this element in element 2 of the array.

Search for a word in $states that ends in a. Store this word in element 3 of the array.

Search for a word in $states at the beginning of the string that starts with M. Store this word in element 4 of the array.

Output the array $statesArray to the screen.

Answers

Answered by kirti30es
0

Answer:

thanks for free points hahaha

Similar questions