Question: Language is c++ and need to run it in code blocks Lab: Character Arrays Lab a: 1. Create an array to store 8 characters. 2.
Language is c++ and need to run it in code blocks
Lab: Character Arrays
Lab a:
1. Create an array to store 8 characters.
2. Using a for loop, get an 8-letter word from the user, one letter at a time.
3. Then use another for loop to print the complete word onto the screen one letter at a time.
4. Then use a third for loop to print out the word backwards.

Lab b:
Write a function that takes your array of characters and a single character and searches through the array cell by cell for the specified character. If found, display the index at which the letter was found; if not, display a message stating that the character array does not contain that letter.

Or

Lab c:
Write a function that takes your array of characters and goes through letter by letter converting each character to uppercase. To convert a single letter to uppercase, whether it is already uppercase or lowercase, you can use the toupper() function:
char letter = g; letter = toupper(letter); cout

Sample output from a full run of lab code:

cluserslebowringldocumentslvisual studio 2010\Projects Lab 61Debug Lab 6.exe lease enter letter #0 : T Please enter letter #1: e Please enter letter #2: Please enter letter #3: t Please enter letter #4: h Please enter letter #5: 0 Please enter letter #6: 0 Please enter letter #7: k The word is Textboo]k The word backwards is koobtxeT
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
