Question: 7. Write a function countChar() that gets a string and a character as parameters, and returns the number of occurences of that character in the

 7. Write a function countChar() that gets a string and a

7. Write a function countChar() that gets a string and a character as parameters, and returns the number of occurences of that character in the string. Do not use count() method. 2. Write a function to determine if a given string contains a numeric type (either integer or decimal). 3. Count how many times a substring occurs in a string including overlapping occurences: ("banana", "ana") 2. 4. Write a function that tests if a given string is a palindrome. 5. Write a function countUp() that returns the number of upper case letters in a given string. 6. Write a function upLow() that returns a new string made by converting all upper case letters to lower and lower case letters to upper in a given string

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!