1. | Write a C++ program to extract a character from the word as defined below. string word = "Computer"; Array index = 9 Array index = 3 : |
||||||
2. | Write a C++ program to extract a substring from the sentence as defined below. string sentence = "Sacred Heart Canossian College"; Starting index = 13 : |
||||||
3. | Write a C++ program which counts the number of words in a sentence. Sample Output |
||||||
4. | Write a C++ program to convert a sentence to each of the following
format.
|
||||||
5. |
Encryption is the conversion of data into a form, called a cipher text that cannot be easily understood by unauthorized people. Decryption is the process of converting encrypted data back into its original form, so it can be understood. Write a C program to generate the following sample output. Sample Output |
||||||
6. | Write a C++ program to generate an email address for a student with reference to her class and class number. Note: length of user name is 4 and strcat should be used in your program. Sample Output |
||||||
7. | Write a C++ program to accept two input string x and y. Then swap the values of x and y. | ||||||