What is the purpose of each of the following string manipulation functions

What is the purpose of each of the following string

This preview shows page 12 - 15 out of 17 pages.

5.What is the purpose of each of the following string manipulation functions? . 6.What is the general format to declare a two-dimensional array? 7.How do you access an element of a two-dimensional array? 12
Image of page 12
UECS1643Fundamentals Of Programming Part D (Practice Exercises) 1.Write a program that accepts a letter and displays the position of the letter in the alphabet. For example, letter has position 1, bposition 2, and so on. The program should be able to handle both upper- and lowercase letters.If the character entered is not alphabetic, the program should display a message and stop. Note: The programshould convert the letter to lowercase case first before determining the position.#include <iostream>#include <cctype>#define A_ASCII_CODE 97using namespace std;int main(void{char ch;int position;cout << a ) ; ; 2.Write and test a function named convertCasethat has an array of charactersas a parameter. Thefunction converts all the letters in the word to uppercase letters. ) ; 13
Image of page 13
3.Write and test a function that has a two dimensional array and its number of rows as parameters. The functioncomputes and returns the totalof all the elements of the array. Assume the array has 4 columns. )
Image of page 14
Image of page 15

You've reached the end of your free preview.

Want to read all 17 pages?

  • Fall '18
  • ASCII, len, Lower case, int table

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture