My First Program

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
  typedef unsigned short USHORT;

    #include <iostream>
    
    using namespace 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;
}}}
Topic archived. No new replies allowed.