Question
For this project you will create a program that will test the users proficiency at solving different types of math problems. The program will be
For this project you will create a program that will test the users proficiency at solving different types of math problems. The program will be menu driven. The user will select either addition, subtraction, multiplication or division problems. The program will then display a problem, prompt the user for an answer and then check the answer displaying an appropriate message to the user whether their answer was correct or incorrect. The user will be allowed 3 tries at each problem. The program will also keep statistics on how many problems were answered correctly. At this point you should have a working copy of the program that displays practice programs for addition, subtraction, multiplication and division. This week you will complete the application by adding functions to allow the user to select problems of varying degrees of difficulty and also keep statistics on number of correct answers vs total number of problems attempted. So now lets add the code for the remaining functions: Well start by inserting code to ask the user if they want to see problems that are easy, medium or difficult. Well do this by prompting them to enter e for easy, m for medium or d for difficult and well do this right after they have selected the type of problems they want. We will also add a validation loop that will check to see if they entered a correct response (e,m, or d). Easy problems using numbers 0 thru 10 Medium problems 11 thru 100 Difficult problems 100 1000 Use an if statement to check the difficulty and generate the random numbers. Statistics: Create two variables ttlProblems and correctAnswers. Every time the user answers a problem add 1 to ttlProblems and every correct answer add 1 to correctAnswers. Well display the total number of problems and correct answers as well as the percent correct after the user has selected the exit option on the main menu. This will complete the course project. Test it thoroughly and have some one you trust test it also. USE stdio.h
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