Question: the goal is to create a c++ programs with small functions where the main delegates series of functions where the real work takes place. In

the goal is to create a c++ programs with small functions where the main delegates series of functions where the real work takes place. In this programming assignment, you are not allowed to use global variables. Avoid using break (unless working with a switch statement). Limit your functions to no more than 30 statements of code (not including comments or blank lines). Never use a return in the middle of a loop! Program Assignment: When I went to Paris over Spring break, I was really proud to have learned how to count to a hundred before leaving. It is fun to learn basics about other languages. I tried out some apps to help learn french, but I found them really hard to use or just to elementary. I just wanted to learn how to count and nothing else. With this program, you will create a game to help the user learn how to count to ten in french. The game will begin by displaying the entire word for a number (Un). The player has to guess what number it is (One). 1. Every time the player gets it correct, they get a point 2. After 5 points, they are ready to advance to the next level 3. The player should also have an option to quit rather than progressing In the next level, one letter is left out of the word and the player has to provide the missing letter (D_x for 10). The player has to guess the missing letter. 1. Every time the player gets it correct, they get a point 2. After 5 points, they are ready to advance to the next level 3. The player should also have an option to quit rather than progressing In the third and final level, 2-to-3 letters are left out of the word (if the word is longer than 2 lettersthere must always be at least one letter displayed) 4. The player wins when they get 5 points at this level 5. The player can quit early if they want. You will want to use the random number generator when determining which character to leave blank for level 2 and 3 of the game. 1. Include the cstdlib and ctime libraries 2. Seed the random number generator at the beginning of your program: srand(time(0)); 3. Use the random number generator get receive a random number: number = rand(); 4. The mod operation (%) is great to limit the value returned from the random number generator, such as limiting the number to a range of 1-length of a word. variable = some_number % maximum; The % gives you the remainder (which is what is left over after an integer division). Things you should know...as part of your C++ program: 1. You can assume that the name of a number is no longer than 20 characters. 2. After each input operation, make sure to use cin.ignore to remove the delimiters! 3. Make sure to prompt the user for any input requested. Make sure it is clear from your prompts what the user is expected to do.

4. Use the cstring library with strlen to determine the length of the question and response entered. 5. The use of strlen should not be in the conditional expression. Consider using it prior to a loop and storing the results of strlen in a variable!! 6. Use the subscript operator [] to match letters, using a loop (recommend for loops)

7. You may not use any global variables in this program!

8. You may not use the string class instead use arrays of characters with cstrings 9. Make sure to use C++s I/O (iostream library) for your input and output. 10. FUNCTIONS are required for this assignment

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!