Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started