strings :: problem set 1

  1. Write a progam to output the first and the last letter of a word.
  2. Read a series of words and output the middle letter of each word (the word must have an odd number of charactes)
  3. Write a program to input a word, isolate the first letter and output it as a capital letter.
  4. Write a program to input a word, reverse the order of the letters, and output the new backward word.
  5. Write a program that prompts the user for a word. The program then converts the word into lowercase, searches and counts the number of vowels in the word. Display the total number of vowels and the number of occurrences for each vowel.
  6. A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward, such as taco cat or madam or racecar or the number 10801. Write a a program to check if a word is a palindrome.
For answers click here