Reference no: EM132494150
For this project, you will make a program that will test the user's 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 add 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 let's add the code for the remaining functions:
We'll start by inserting code to ask the user if they want to see problems that are easy, medium or difficult. prompting them to enter 'e' for easy, 'm' for medium or 'd' for difficult and we'll this is 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
Here's some code to get you started on the "difficulty level."
if( difficultyLevel == 'E')
{
num1=rand()%10+1;
num2=rand()%10+1;
}
else
if (difficultyLevel == 'M')
{num1=rand()%100+1;
num2=rand()%100+1;
}
else
{ num1=rand()%1000+1;
num2=rand()%1000+1;}
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. We'll 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.
What is the error in total net income
: A company's financial statement, What is the error in total net income for the combined three-year period resulting from the inventory errors?
|
What is the difference between emulation
: 1. What Is The Difference Between Emulation, Native Virtualization, And Para Virtualization?
|
Take a new record from the user for a new student
: Add a new record - take a new record from the user for a new student. Be careful, you may need to allocate more memory using dynamic memory allocation.
|
Draw the heap that results from inserting
: Draw the heap that results from inserting 10, 12, 1, 14, 3, 17, 7, 2, 5, 8, 6 and 70 (in that order) into an initially empty binary max heap.
|
Create two variables ttlproblems
: For this project, you will make a program that will test the user's proficiency at solving different types of math problems. The program will be menu driven.
|
Can anyone explain me the topic of linked lists
: Can anyone explain me the topic of Linked Lists? I am studying data structures using Java and I need help wrapping myself around this concept.
|
Research on the topic of data analytics and visualization
: Project assignment is to have you do more research on the topic of Data Analytics and Visualization. In this project you will need to do some research.
|
Prepare an answer sheet with the column headings
: Agler Company specializes in manufacturing motorcycle helmets. Prepare an answer sheet with the following column headings
|
Which the land should be recorded in the purchaser books
: Recognized by the purchaser as easily being worth $140,000, and is purchased for $137,000, the land should be recorded in the purchaser's books at
|