How is a character stored in the computer A character is stored in the computer

How is a character stored in the computer a character

This preview shows page 14 - 17 out of 18 pages.

2.How is a character stored in the computer? 3.How is a string stored in the computer? 4.What is the difference between reading a string using cinand cin.getline ? 5.What is the purpose of each of the following string manipulation functions? . 14
Image of page 14
UECS1643Fundamentals Of Programming 6.What is the general format to declare a two-dimensional array? 7.How do you access an element of a two-dimensional array? Part D (Practice Exercises)1.Write a program that accepts a letter and displays the position of the letter in the alphabet. Forexample, letter a has position 1, bposition 2, and so on. The program should be able to handle upper- and lowercase letters. If the character entered is not alphabetic, the program should display amessage and stop. Note: The program should convert the letter to lowercase case first beforedetermining the position. both ; ;
Image of page 15
UECS1643Fundamentals Of Programming 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. ;
Image of page 16
Image of page 17

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture