C Programming - Assignment - 14

 Assignment 14

----------------------------

All the questions in this assignment are based on the concept of strings.

  1. Input a multiword string and print it.
  2. Input a string and check the fifth character is a vowel or a consonant
  3. Input a string and check the first character is in lower case or in upper case.
  4. Input a string and find the length of the string.
  5. Input a string and find the number of vowels in it.
  6. Input a string and then find the number of consonants in it
  7. Input a string and then find number of bank spaces in it
  8. input a string and then find number of words in it
  9. Input a string and then find how many times the first character occurs in it.
  10. Input a string and then reverse it. [ Say the string is : “This” then reversed is sihT” ]
  11. Input a string then find whether it is palindrome or not?
  12. Input a string and convert it into Lower case
  13. Input a string and then convert it into UPPER CASE
  14. Input a string and then convert it into Title case [ This Is A Book ]
  15. Input a string and then convert it into toggle case.
  16. Input a name consists of First Name, Middle Name and Last Name [say : Raj Kumar Verma] and print the name as R.K. Verma
  17. Input a name consisting of First Name, Middle Name and Last Name [Say : Raj Kumar Verma] and print the name as Raj K. Verma
  18. Input a string and then input a character. Print the second index of that character in that string. For example : string – this is a book. And the character is ‘s’ . Second index of ‘s’ is 6.
  19. Input a string and check whether it is "Pangram" or not. Hint : Panagram is a string which contain all the alphabets (a-z). Example: A quick brown fox jumps over the lazy dog.
  20. Input two strings and check if they are Isomorphic to each other. Hint : two string s1 and s2 are isomorphic is there is one to one mapping possible for every character of s1 to every character of s2.  Example : s1 = xxy, s2 = aab (these two are isomorphic). s1=aab, s2=xyz (not isomorphic).

Comments