I know it's a little basic but it works and it does get harder as they go. I made this a while back so It works fine If you want to take it apart and use it for reference be my guest
typedefunsignedshort USHORT;
#include <iostream>
usingnamespace std;
int main()
{
USHORT first;
USHORT second;
USHORT third;
USHORT fourth;
USHORT fifth;
USHORT sixth;
cout<<"Hello Welcome to Darth Bane's Math Begginer Program.\nThis will quiz you on everything from \naddition to division\n\n\n";
cout<<"------Please Pick a Level--------------------\n\n\n";
cout<<" Level 1 is for early early beginners Just learning addition.\n\n";
cout<<" Level 2 is for Early begginers who have learned adding 3+ numbers\n\n";
cout<<" Level 3 is for beginners who have learned how to multiply\n\n";
cout<<" Level 4 is for those who have learned to Divide\n\n";
cout<<" (You can type 5 to exit instead)\n\n\n\n\n\n";
cin>> sixth;
if (sixth==1)
{
int addend = 2; // initialize first number
int sum = 0; // initialize second number
int multi = 1; // intialize third number
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nAdd these two numbers together\n";// Making a new page only way I know how
third=0;
while(third < 10)
{
addend ++; // top of the loop
sum ++;
multi ++; // top of the second loop
cout <<" "<< addend << "\n";
cout <<" +"<< sum << "\n";
cout << "_____\n ";
cin>> second;
fourth=addend+sum;
{
if (second!=fourth)// Did it wrong
{
cout <<"\n\n\n\nOOPS sorry that's not it :( try this one: \n\n";
}
if (second==fourth)// Did it right
{
cout<<"\n\n\n\nGOOD JOB!! try this one:\n";
}
}
}
}
if (sixth==2)
{
int addend = 2; // initialize first number
int sum = 4; // initialize second number
int multi = 1; // intialize third number
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nAdd these three numbers together\n";// Making a new page only way I know how
third=0;
while(third < 10)
{
addend ++; // top of the loop
sum ++;
multi ++; // top of the second loop
cout <<" "<< addend << "\n";
cout <<" "<< sum << "\n";
cout <<" +"<< multi << "\n";
cout << "_____\n ";
cin>> second;
fourth=addend+sum+multi;
{
if (second!=fourth)// Did it wrong
{
cout <<"\n\n\n\nOOPS sorry that's not it :( try this one: \n\n";
}
if (second==fourth)// Did it right
{
cout<<"\n\n\nGOOD JOB!! try this one:\n";
}
}
}
}
if (sixth==3)
{
int addend = 2;
int sum = 0;
int multi = 1;
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nmultlipy these numbers \n";// Making a new page only way I know how
third=0;
while(third < 10)
{
addend ++; // top of the loop
sum ++;
multi ++; // top of the second loop
cout <<" "<< addend << "\n";
cout <<"X "<< sum << "\n";
cout << "_____\n ";
cin>> second;
fourth=addend*sum;
{
if (second!=fourth)// Did it wrong
{
cout <<"\n\n\n\nOOPS sorry that's not it :( try this one: \n\n";
}
if (second==fourth)// Did it right
{
cout<<"\n\n\nGOOD JOB!! try this one:\n";
}
}
}
}
if (sixth==4)
{
int addend = 50; // initialize first number
int sum = 0; // initialize second number
int multi = 1; // intialize third number
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nDivide these numbers (Round to the nearest whole number)!!!\n";// Making a new page only way I know how
third=0;
while(third < 10)
{
addend ++; // top of the loop
sum ++;
multi ++; // top of the second loop
cout <<" "<< addend << "\n";
cout <<"% "<< sum << "\n";
cout << "_____\n ";
cin>> second;
fourth=addend/sum;
{
if (second!=fourth)// Did it wrong
{
cout <<"\n\n\n\nOOPS sorry that's not it :( try this one: \n\n";
}
if (second==fourth)// Did it right
{
cout<<"\n\n\nGOOD JOB!! try this one:\n";
}
}
}
}
if (sixth==5){
cout<<"GOOD BYE :D\n";
{
system("PAUSE");
return 0;
}}}