Paul Stewart 1/13/2016
See this sections training videoIn this program, the user enters the "grades" of twenty students. The program asks the user to type in the desired grade twenty times (not the same grade over and over). When the user has done so, the computer clears the screen and finds the highest grade the user typed in and outputs it to the screen. One more note, the "grades" that the user types in, can be more than one hundred. It can be one thousand and three and so on.
This program is a version of hang-man. The program randomly selects a word from an array of ten strings. Then it outputs at the top of the screen, the same number of pluses as letters. This gives the user an idea of how long the word is. Then the user types in a single letter and the program searches for that letter in the word. If it is in the word, it will put the letter the user typed in anywhere it appears in the word. It switches the pluses at the top of the screen with the correct letters the user typed in. After the user guesses all of the letters, the computer clears the screen and congradulates the user for guessing all of the letters correctly.
In this program you type in letters or words, and the computer outputs them to the screen. First the user types in as many letters or words as they want. These go into a vector of strings. Note that vectors can expand on command, unlike an array. This happens inside of while loop in which the condition states that the while loop will always run. As soon as the user types exit, the program breaks out of the while loop and outputs all letters or words the user typed in and outputs them to the screen (except) for the exit.
Basicaly, what this program does is it has an array of chars and you guess any of the letters that are in the array. First the computer asks you to type in a letter that you think is in the array and the user types in theirs guess. Next the computer searches through the array and checks to see if the guessed letter is in the array. If it is, it will output the letter you guessed and what variable in the array it was found at the space in memory of the array. If it is not, it will way sorry, you did not find the letter. Then, even if you don't get the letter, the program will ask you if you would like to do the program again. If yes, the whole program starts over, if no you exit the program and you are done.