0% found this document useful (0 votes)
14 views

CP String-06

The document lists 10 string manipulation tasks including reversing a string, counting character occurrences, calculating digit sums and averages, finding substrings ignoring case, balancing string characters, creating mixed strings, counting letters/digits/symbols, arranging lowercase letters first, creating strings from parts of input strings, and creating strings from character parts.

Uploaded by

Tarek
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

CP String-06

The document lists 10 string manipulation tasks including reversing a string, counting character occurrences, calculating digit sums and averages, finding substrings ignoring case, balancing string characters, creating mixed strings, counting letters/digits/symbols, arranging lowercase letters first, creating strings from parts of input strings, and creating strings from character parts.

Uploaded by

Tarek
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

Reverse a given string

2. Write a program to count occurrences of all characters within a string

3. Calculate the sum and average of the digits present in a string

4. Find all occurrences of a substring in a given string by ignoring the case


5. String characters balance Test

6. Create a mixed String using the following rules

7. Count all letters, digits, and special symbols from a given string
8. Arrange string characters such that lowercase letters should come first

9. Create a new string made of the first, middle, and last characters of each input string

10. Create a string made of the first, middle and last character

You might also like