Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need some help with me C++ assignment. Here are the requirements: Choices shou

ID: 3558196 • Letter: I

Question

I need some help with me C++ assignment. Here are the requirements:

  Choices should be as follows:

If any of the first three is selected, the user should be presented with 10 RANDOM mathematical problems from that set one at a time. At all times the student should know what question in the set he/she is working on out of 10 questions. The user should also know how many attempts he/she has taken per question. If the user answers a problem incorrectly, the user should be notified that the response is incorrect and be given multiple chances to answer the question correctly. With each incorrect answer, the attempt count should increase. In the even of a correct response, the user should be notified that the answer is correct and the next problem should appear.

Upon completion of the question set, the user should be given a report of the number of questions answered correctly and in how many attempts. The user's grade should be calculated as (correctAnswers / NumberOfAttempts * 100). The initial menu should be re-displayed and the user given the opportunity to attempt another set of random problems from the chosen operation.

Also, write the result of the student to a file for output. This means you should ask for the student's name prior to the menu for operation exercises. The file output should have:

Even though this is inefficient and slightly wasteful, create a file for each set completion or research how to append to a file and append each set to the same file.

(The sentences in "bold" are what I'm missing from my my program and need help with)

Here is what I have so far (everything works fine the way it is suppose to except it just doesnt have the stuff in "bold" included yet)

/*

My name

Date

Title

C++

*/

?

?

?

#include <iostream>

#include <cmath>

#include <ctime>

#include <cstdlib>

using namespace std;

?

int num1,

num2,

num3,

response,

answer1,

wrong,

correct,

ran1,

y,

z,

x;

int main()

{

for (x = 0; x < 1000; x++){

system("cls");

cout << "my name and title" << endl << endl;

cout << "Please enter what Method of Arithmetic you would like to do" << endl << endl;

cout << "To Select Addition Please Press (1)" << endl << endl;

cout << "To Select Subtraction Please Press (2)" << endl << endl;

cout << "To Select Multiplication Please Press (3)" << endl << endl;

cout << "To Quit the Math Tutor Please Press (4)" << endl << endl;

cin >> response;

cout << endl << endl;

y = 0;

z = 0;

?

for (y = 0; y < 10; y++){

if (response == 1)

{

unsigned seed = time(0);

srand(seed);

num1 = rand() % 999;

num2 = rand() % 999;

num3 = rand() % 999;

system("cls");

cout << "Attempt 1/10" << endl << endl;

cout << "Compute the following" << endl << endl;

cout << num1 << " + " << num2 << " = ?" << endl << endl;

cin >> answer1;

cout << endl << endl;

if (answer1 != num1 + num2)

{

cout << "Wrong answer" << endl << endl;

wrong += 1;

system("pause");

}

if (answer1 == num1 + num2)

{

cout << "Right answer" << endl << endl;

correct += 1;

system("pause");

}

}

}

for (z = 0; z < 10; z++){

if (response == 2)

{

unsigned seed = time(0);

srand(seed);

num1 = rand() % 999;

num2 = rand() % 999;

num3 = rand() % 999;

system("cls");

cout << "Compute the following" << endl << endl;

cout << num1 << " - " << num2 << " = ?" << endl << endl;

cin >> answer1;

cout << endl << endl;

if (answer1 != num1 - num2)

{

cout << "Wrong answer" << endl << endl;

wrong += 1;

system("pause");

}

if (answer1 == num1 - num2)

{

cout << "Right answer" << endl << endl;

correct += 1;

system("pause");

}

}

}

?

for (z = 0; z < 10; z++){

if (response == 3)

{

unsigned seed = time(0);

srand(seed);

num1 = rand() % 999;

num2 = rand() % 999;

num3 = rand() % 999;

system("cls");

cout << "Compute the following" << endl << endl;

cout << num1 << " * " << num2 << " = ?" << endl << endl;

cin >> answer1;

cout << endl << endl;

if (answer1 != num1 * num2)

{

cout << "Wrong answer" << endl << endl;

wrong += 1;

system("pause");

}

if (answer1 == num1 * num2)

{

cout << "Right answer"<< endl << endl;

correct += 1;

system("pause");

}

}

}

if (response == 4)

{

exit(1);

}

system("cls");

cout << "You answered " << correct << " correctly out of 10" << endl << endl;

cout << "The percentage score is " << (correct * 10) << "%" << endl << endl;

system("pause");

}

?

return 0;

}

Thank you in advance!!!

Explanation / Answer

If you need help in this question or anykind of help then email me at : cheggwalacoder@gmail.com