Question
Adition Game Description: Create a C# console application to create a game that prompts the user to answer basic addition math problems. Purpose: In this
Adition Game Description: Create a C# console application to create a game that prompts the user to answer basic addition math problems. Purpose: In this project you will develop a program using basic programming structures to create a math game that prompts a user to answer a series of addition problems. The program will keep track of the number of correct and incorrect answers and display the result at the end. Requirements: Project Name: AdditionGame Create a program in C# called AdditionGame that prompts a user to answer a series of addition problems. The program will keep track of the number of correct and incorrect answers and display the result at the end. Program Requirements Your program should meet the following requirements: The program should prompt the user for a difficulty level. Valid options are 1, 2, or 3.If the user does not input 1, 2, or 3, the program should prompt again. The program should prompt the user for the number of questions to ask. Valid options are 1 - 10.If the user does not input 1 - 10, the program should prompt again. The program should randomly generate the number of questions the user entered in the previous step. For example, if the user entered 5 for the number of questions the program should ask, the program should then generate 5 math problems. Likewise, if they entered 10 the program should generate 10 problems. The problems should be formatted as X + Y = , wherein each of X and Y is a non-negative integer with difficulty level of digits. For example: If the user chose difficulty level 1 then X and Y should be 1 digit, non-negative, numbers (0 - 9). If the user chose difficulty level 2 then X and Y should be 2 digit, non-negative, numbers (10 - 99). If the user chose difficulty level 3 then X and Y should be 3 digit, non-negative, numbers (100 - 999). Your program does not need to support operations other than addition (+). The program should prompt the user to solve each problem. If an answer is correct the program should output CORRECT!!! and the prompt the user to answer the next question. If an answer is not correct (or not even a number), the program should output WRONG!!! and prompt the user again, allowing the user up to three tries in total to answer the question. If the user has still not answered correctly after three tries, the program should output the correct answer and the prompt the user to answer the next question. The program should ultimately output the users score and the percentage (formatted to 2 decimal places) correct. End the program Note: You must write a minimum of two (2) functions.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started