Hi, I'm trying to get this code done and I can't figure it out. Some people from another website have been trying to help me but then they just stopped and I have no idea where they were going with this program. It's for a final in my programming class and I'm back in my hometown so I can't go into class to get help. Could someone please take a look at this code and help me it would mean alot this is due in 2 days and I'm really freaking out.

If you choose this path you will develop a math tutor for grades k - 3 & 4 - 6 (need to understand levels of math skills for each of these levels). This will be a fully functional application that will run as long as the user wants it to run asking them to answer a randomly generated math problem. They must be able to select their level and whether they want to practice - addition, subtraction, multiplication, or division (make sure the program does not allow division by zero! You must keep track of their statistics providing them with a complete report of how well they did after each round - have the program comment on their correctness or incorrectness giving them at least 6 tries before giving them the correct answer. Provide encouraging comments throughout the program (funny is acceptable ).

Inputs - user name, user level, user enters which equation type they want to practice,

program should generate the problem based on user entry, display correct or incorrect responses, and allow the user to continue or stop

Outputs - user statistics ( nice report format) after each round, encouraging comments throughout program execution, and final game comments

That's the question and here's what I have so far, please please please help me I would apprectiate it alot.

/////////////////////////

This is how it now looks btw, no x and y I made those gone and gtwo.

Code:#include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { // variables ///////////////////////////////////////////////////////////////////// int grade = 0; int mathtype; string name; int gone rand(); int gtwo rand(); int answer; int guess; // START //////////////////////////////////////////////////////////////////// cout <<" WELCOME TO Katies MATHTEST!!!"<<endl<<endl<<endl; cout <<"Please enter your name: "<<endl; cin >> name; cout <<"and what grade are you in?"<<endl; cin >>grade; // Now I need to make an if so it will know which grade to go into/////// if (grade <4) { cout <<"You've selected grades k-3, what would you like to work on?"<<endl; cout <<endl<<endl<<endl<<"Addition Division Multiplication Subtraction"<<endl; cout << " 1 2 3 4 "<<endl<<endl<<endl; cin >> mathtype; } else { cout <<"You've selected grades 4-6, what would you like to work on?"<<endl; cout <<endl<<endl<<endl<<"Addition Division Multiplication Subtraction"<<endl; cout << " 1 2 3 4 "<<endl<<endl<<endl; cin >> mathtype; } ////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// ////////////////////////////////////////// ////////////////////////// //////////// //// if (mathtype == 1) { cout<<"You chose Addition, here's question 1 of 5"<<endl; gone + gtwo = answer; cout<<"What is "<<gone<<"plus "<<gtwo<<endl; cin>>guess; if (guess == answer) { cout<<"That's right!"<<endl; } else { cout<<"Sorry that's not right, please guess again"<<endl; } } if (mathtype == 2) { cout<<"You chose Division"<<endl; } if (mathtype == 3) { cout<<"You chose Multiplication"<<endl; } if (mathtype == 4) { cout<<"You chose Subtraction"<<endl; } system("PAUSE"); return EXIT_SUCCESS; }