#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<iostream.h>
#include<time.h>
void wait (int seconds)
{
clock_t endwait;
endwait = clock () + seconds * CLOCKS_PER_SEC ;
while (clock() < endwait) {}
}
int main ()
{
int a,b,pilihan;
pawal:
sawal:
sawal1:
clrscr();
puts (" |============================================================================|");
puts (" |\tMAIN MENU:\t\t\t\t\t\t\t |");
puts (" |============================================================================|");
puts (" |1. START |");
puts (" |2. RULES |");
puts (" |3. ABOUT |");
puts (" |4. EXIT |");
puts (" |============================================================================|");
do {
printf(" please choose one of the menu by typing in the number: ");
scanf("%i",&pilihan);
}
while (pilihan>4);
if (pilihan==1)
{
clrscr();
puts("\tChoose the mode ");
puts (" |============================================================================|");
puts (" 1. Translate The word from Sentences");
puts (" 2. Find The Synonym");
puts (" 3. Find The Antonym");
puts (" 4. Fill In The Blank");
puts (" 5. Rearrange The Sentenses");
puts (" |============================================================================|");
do
{
printf("\tplease choose one of the menu by typing in the number: ");
scanf("%i",&pilihan); clrscr();
}
while (pilihan>5); }
if (pilihan==1) {
soal:
int n;
printf ("Waktu anda tinggal \n");
for (n=20; n>0; n--)
{
printf ("%d ",n);
wait (1);
}
printf ("\n Press any key to continue\n");
getche(); goto soal ;
int e,f;
char jwb;
char level1[4][1000]={{"What appears in the first draft of THE BUDGET will not necessarily be in final draft. what is the meaning of the word capitalized?"},
{"In the middle of the forest are many WILD animals such as tigers, what is the meaning of the word capitalized?"},
{"People JUDGE you by your words as well as your actions, so try to write well.what is the meaning of the word capitalized? "},
{"Some people do DAMAGE to forests by felling trees in the wild.what is the meaning of the word capitalized?"}};
puts ("level 1");puts ("");
puts ("Translate The word from Sentences");puts ("");
awal1:
puts ("");
randomize();
for(e=0; e<4; e++)
f=rand()%4;
{printf ("\t%s",level1[f]); }
if (f==0)
{puts ("");puts ("\tA.Rancangan\tB.Anggaran\tC.Keuangan\t\tD.Rencana");puts("");printf("your answer (a/b/c/d):");scanf ("%s",&jwb);
if (jwb=='b'){puts ("you choose the correct answer");printf ("press any button to continue\n");getch();goto awal1;}
else {puts ("you choose the wrong answer");printf ("press any button to continue");getch();goto sawal1;}}
if (f==1)
{puts ("");puts ("\tA.Penakut\tB.Bahaya\t\tC.Galak\t\tD.Liar");puts("");printf("your answer (a/b/c/d):");scanf ("%s",&jwb);
if (jwb=='d'){puts ("you choose the correct answer");printf ("press any button to continue\n");getch();goto awal1;}
else {puts ("you choose the wrong answer");printf ("press any button to continue");getch();goto sawal1;}}
if (f==2)
{puts ("");puts ("\tA.Menentukan\t\tB.Menilai \t\tC.Memilih\t\tD.Menolak");puts("");printf("your answer (a/b/c):");scanf ("%s",&jwb);
if (jwb=='b'){puts ("you choose the correct answer");printf ("press any button to continue\n");getch();goto awal1;}
else {puts ("you choose the wrong answer");printf ("press any button to continue");getch();goto sawal1;}}
if (f==3)
{puts ("");puts ("\tA.Kerusakn\tB.Keamanan\tC.Menjaga\t\tD.Memelihara");puts("");printf("your answer (a/b/c/d):");scanf ("%s",&jwb);
if (jwb=='a'){puts ("you choose the correct answer");printf ("press any button to continue\n");getch();goto awal1;}
else {puts ("you choose the wrong answer");printf ("press any button to continue");getch();goto sawal1;}} }
if (pilihan==2){
int s,t;
char jawab;
char level2 [5][200]={{"At age fouteen, she wrote her first computer worm , wich TOOK OVER the shutdown screens of infected users"},
{"*Actually, I think stupid people should have some sorts of LICENSE to get on the internet*,she says"},
{"Both are CUNNING and quick, and you would not want either of them to bite you"},
{"I do want to ADMIT I'm famale because there is nothing hide about it"},
{""}};
puts ("level 2");puts ("");
puts (" Find the synonim from the capital word ");puts ("");
awal:
puts ("");
randomize();
for(s=0;s<4; s++)
t=rand()%4;
{printf ("\t%s",level2[t]); }
if (t==0)
{puts ("");puts ("\tA.controlled\tB.acquired\tC.harm\tD.Change");puts("");printf("your answer (a/b/c/d):");scanf ("%s",&jawab);
if (jawab=='a'){puts ("you choose the correct answer");printf ("press any button to continue\n");getch();goto awal;}
else {puts ("you choose the wrong answer");printf ("press any button to continue");getch();goto pawal;}}
if (t==1)
{puts ("");puts ("\tA.letter\tB.authorization\t\tC.identity\tD.Moved");puts("");printf("your answer (a/b/c/d):");scanf ("%s",&jawab);
if (jawab=='b'){puts ("you choose the correct answer");printf ("press any button to continue\n");getch();goto awal;}
else {puts ("you choose the wrong answer");printf ("press any button to continue");getch();goto pawal;}}
if (t==2)
{puts ("");puts ("\tA.triky\t\tB.cruel\t\tC.unkind\tD.over");puts("");printf("your answer (a/b/c/d):");scanf ("%s",&jawab);
if (jawab=='a'){puts ("you choose the correct answer");printf ("press any button to continue\n");getch();goto awal;}
else {puts ("you choose the wrong answer");printf ("press any button to continue");getch();goto pawal;}}
if (t==3)
{puts ("");puts ("\tA.explain\tB.clarify\tC.void\tD.confess");puts("");printf("your answer (a/b/c/d):");scanf ("%s",&jawab);
if (jawab=='d'){puts ("you choose the correct answer");printf ("press any button to continue\n");getch();goto awal;}
else {puts ("you choose the wrong answer");printf ("press any button to continue");getch();goto pawal;}} }
if (pilihan==4) {
int c,d;
char jawab1;
char level4[4][1000]={{".....Biloxi received its name from a Sioux word meaning =first people="},
{".....tea plant are small and white"},
{"The tetrachnes.....antibiotics, are used to treat infections"},
{"During free fall,....up to a full minute, a skydriver will fall at a constant speed"}};
puts ("level 4");puts ("");
puts ("Fill in The Blank ");puts ("");
jawal:
puts ("");
randomize();
for(c=0; c<4; c++)
d=rand()%4;
{printf ("\t%s",level4[d]); }
if (d==0)
{puts ("");puts ("\tA.The city of\tB.Locate in\tC.It is in\t\tD.The tour included");puts("");printf("your answer (a/b/c/d):");scanf ("%s",&jawab1);
if (jawab1=='a'){puts ("you choose the correct answer");printf ("press any button to continue\n");getch();goto jawal;}
else {puts ("you choose the wrong answer");printf ("press any button to continue");getch();goto sawal;}}
if (d==1)
{puts ("");puts ("\tA.The\tB.On the\t\tC.Having flower the\t\tD.The flowers of the");puts("");printf("your answer (a/b/c/d):");scanf ("%s",&jawab1);
if (jawab1=='d'){puts ("you choose the correct answer");printf ("press any button to continue\n");getch();goto jawal;}
else {puts ("you choose the wrong answer");printf ("press any button to continue");getch();goto sawal;}}
if (d==2)
{puts ("");puts ("\tA.Are a family of\t\tB.Being a family \t\tC.A family of\t\tD.Their family");puts("");printf("your answer (a/b/c/d):");scanf ("%s",&jawab1);
if (jawab1=='c'){puts ("you choose the correct answer");printf ("press any button to continue\n");getch();goto jawal;}
else {puts ("you choose the wrong answer");printf ("press any button to continue");getch();goto sawal;}}
if (d==3)
{puts ("");puts ("\tA.It is\tB.Which is\tC.Being\t\tD.is");puts("");printf("your answer (a/b/c/d):");scanf ("%s",&jawab1);
if (jawab1=='a'){puts ("you choose the correct answer");printf ("press any button to continue\n");getch();goto jawal;}
else {puts ("you choose the wrong answer");printf ("press any button to continue");getch();goto sawal;}} }
/*else if (pilihan==2)
{clrscr();
puts("");puts ("");
printf ("press any button to back");
getch(); clrscr();goto awal;
}
else if (pilihan==3)
{clrscr();
puts ("\n\n\t\THIS Quiz CREATED BY:");
puts ("\n\t\t1. EEC 201 ==> ");
puts ("\n\t\t2. EEC 205 ==> ");
puts ("\n\t\t3. EEC 212 ==> ");
puts ("\n\t\t4. EEC 238 ==> ");
puts("");puts ("");
printf ("press any button to back");
getch(); clrscr();goto awal;
}
//if (t==4) ;
else if (pilihan==4)*/
{
_exit(0);
}
}
0 komentar:
Posting Komentar