//BLANK TEMPLATES //WRITTEN BY david eiriz //DATE //PERIOD #include #include #include #include #include #include #include #include #include #include #include //*************************************************************************** int driver=VGA; int mode=VGAHI; void main(); void Lesson2(); void con(); void opening(); void quiz1(); void vocab(); void battle(); //*************************************************************************** char name[31]; void opening() { do { clrscr(); initgraph(&driver,&mode, "\\TC\\BGI"); settextstyle(TRIPLEX_FONT,HORIZ_DIR,6); setcolor(GREEN); outtextxy(145,10, "DJ Trainer 2000"); sleep(5); closegraph(); cout<<"What is your DJ name? "; gets(name); if (strlen(name)>15) { cout<<"Your DJ name is long; Make it shorter!(15 Characters or less):"; getch(); } } while(strlen(name)>15); clrscr(); textcolor(WHITE); cprintf("DJ Trainer 2000: "); cout<<"A DJ is one who plays music for events such as parties, clubs, radio shows, T.V. shows, etc. There are many things that must be learned beforeone can be a successful DJ. On a basic setup, you will find 2 turntables, 1 mixer (with a crossfader and volume controls)."; cout<>q1; switch(q1) { case 'a': { gotoxy(1,5); clreol(); textcolor(YELLOW); cprintf("A. 1"); gotoxy(1,24); sleep(3);c=c+0; break; } case 'b': { gotoxy(1,6); clreol(); textcolor(YELLOW); cprintf("B. 2"); gotoxy(1,24); sleep(3);c=c+1; break; } case 'c': { gotoxy(1,7); clreol(); textcolor(YELLOW); cprintf("C. 3"); gotoxy(1,24); sleep(3);c=c+0; break; } case 'd': { gotoxy(1,8); clreol(); textcolor(YELLOW); cprintf("D. 4"); gotoxy(1,24); sleep(3);c=c+0; break; } } } while (q1!='a' && q1!='b' && q1!='c' && q1!='d'); //************************************************************************ do { textcolor(LIGHTGRAY); clrscr(); cout<<"BASIC QUIZ NUMBER ONE:"; cout<>q2; switch(q2) { case 'a': { gotoxy(1,5); clreol(); textcolor(YELLOW); cprintf("A. 1"); gotoxy(1,24); sleep(3);c=c+1; break; } case 'b': { gotoxy(1,6); clreol(); textcolor(YELLOW); cprintf("B. 2"); gotoxy(1,24); sleep(3);c=c+0; break; } case 'c': { gotoxy(1,7); clreol(); textcolor(YELLOW); cprintf("C. 3"); gotoxy(1,24); sleep(3);c=c+0; break; } case 'd': { gotoxy(1,8); clreol(); textcolor(YELLOW); cprintf("D. 4"); gotoxy(1,24); sleep(3);c=c+0; break; } } } while (q2!='a' && q2!='b' && q2!='c' && q2!='d'); //************************************************************************ do { textcolor(LIGHTGRAY); clrscr(); cout<<"BASIC QUIZ NUMBER ONE:"; cout<>q3; switch(q3) { case 'a': { gotoxy(1,5); clreol(); textcolor(YELLOW); cprintf("A. Cutting"); gotoxy(1,24); sleep(3);c=c+0; break; } case 'b': { gotoxy(1,6); clreol(); textcolor(YELLOW); cprintf("B. Breaking"); gotoxy(1,24); sleep(3);c=c+0; break; } case 'c': { gotoxy(1,7); clreol(); textcolor(YELLOW); cprintf("C. Scratching"); gotoxy(1,24); sleep(3);c=c+1; break; } case 'd': { gotoxy(1,8); clreol(); textcolor(YELLOW); cprintf("D. Spitting"); gotoxy(1,24); sleep(3);c=c+0; break; } } } while (q3!='a' && q3!='b' && q3!='c' && q3!='d'); //************************************************************************ do { textcolor(LIGHTGRAY); clrscr(); cout<<"BASIC QUIZ NUMBER ONE:"; cout<>q4; switch(q4) { case 'a': { gotoxy(1,5); clreol(); textcolor(YELLOW); cprintf("A. 1"); gotoxy(1,24); sleep(3);c=c+1; break; } case 'b': { gotoxy(1,6); clreol(); textcolor(YELLOW); cprintf("B. 2"); gotoxy(1,24); sleep(3);c=c+0; break; } case 'c': { gotoxy(1,7); clreol(); textcolor(YELLOW); cprintf("C. 3"); gotoxy(1,24); sleep(3);c=c+0; break; } case 'd': { gotoxy(1,8); clreol(); textcolor(YELLOW); cprintf("D. 4"); gotoxy(1,24); sleep(3);c=c+0; break; } } } while (q4!='a' && q4!='b' && q4!='c' && q4!='d'); //************************************************************************ do { textcolor(LIGHTGRAY); clrscr(); cout<<"BASIC QUIZ NUMBER ONE:"; cout<>q5; switch(q5) { case 'a': { gotoxy(1,5); clreol(); textcolor(YELLOW); cprintf("A. CD's"); gotoxy(1,24); sleep(3);c=c+0; break; } case 'b': { gotoxy(1,6); clreol(); textcolor(YELLOW); cprintf("B. Tapes"); gotoxy(1,24); sleep(3);c=c+0; break; } case 'c': { gotoxy(1,7); clreol(); textcolor(YELLOW); cprintf("C. Vinyls"); gotoxy(1,24); sleep(3);c=c+1; break; } case 'd': { gotoxy(1,8); clreol(); textcolor(YELLOW); cprintf("D. MP3's"); gotoxy(1,24); sleep(3);c=c+0; break; } } } while (q5!='a' && q5!='b' && q5!='c' && q5!='d'); //************************************************************************ float tp; textcolor(LIGHTGRAY); clrscr(); tp=c/5.0; if (tp<=.74) { cout<<"Your Percentile: "<=.75) { cout<<"Your Percentile: "<>b1; } while(b1!='a' && b1!='b' && b1!='c' && b1!='d'); if (b1!='c') { cout<>b2; } while(b2!='a' && b2!='b' && b2!='c' && b2!='d'); if (b2!='a') { cout<>b3; } while(b3!='a' && b3!='b' && b3!='c' && b3!='d'); if (b3!='a') { cout<>b4; } while(b4!='a' && b4!='b' && b4!='c' && b4!='d'); if (b4!='b') { cout<>b5; } while(b5!='a' && b5!='b' && b5!='c' && b5!='d'); if (b5!='c') { cout<>b6; } while(b6!='a' && b6!='b' && b6!='c' && b6!='d'); if (b6!='a') { cout<>b7; } while(b7!='a' && b7!='b' && b7!='c' && b7!='d'); if (b7!='a') { cout<>ans; } while(ans!='a' && ans!='b' && ans!='c' && ans!='d'); if (ans!='a') { clrscr(); cout<<"..........A deep voice speaks to you. Don't give credit where crediy is due huh?If it wasn't for DJ 2000, you wouldn't know anything!"; cout<