Program struktur data menjawab pertanyaan bahasa inggris



#include
#include
#include

void present_tense (void);
void past_tense (void);
void future_tense (void);
void past_future_tense (void);
void input_data (void);
void input_lagi (void);
void proses_data (void);

char data[5][5]={"FT", "PT", "ST", "TT"};
char cari[5];
char pilih, pilih1;
int low, high, posisi;
float posisi1;
int N=4, flag=0;
int N1,N2, N3, N4, N5, N6, N7, N8, N9, N10, Nt;

main ()
{
cout<<" *FUN EASY ENGLISH GRAMMAR* "<<<"Silakan pilih jenis tenses yang akan menjadi tenses latihan anda : "<<<" Tenses Kode"<<<"a) Present Tense P "<<<"b) Past Tense S "<<<"c) Future Tense F "<<<"d) Past Future Tense T "<<<<"Input kode Tenses untuk mencari Tenses tersebut (Gunakan huruf Kapital): "; cin>>cari;
cout< *cari) high = posisi-1;
else if(*data[posisi] < *cari) low = posisi+1;
}
while(*cari >= *data[low] && *cari<= *data[high]);
if(flag==1)
{
cout<<"Tenses Ditemukan"<<<<"Apakah Anda Ingin Menampilkan Soal-Soal Tersebut :"<<<"?"<<<"pilih Y/T : ";cin>>pilih;
cout<<<"Soal Future Tense, jawablah dengan benar!"<<<"(Jawablah dengan huruf kecil)"<<<<"Nilai Anda Adalah : " <<<<"Keterangan : "<<<"Nilai 81-100 : Excellent "<<<"Nilai 71-80 : Very Good "<<<"Nilai 61-70 : Good "<<<"Nilai 41-60 : Fair/Enough "<<<"Nilai 21-40 : Bad "<<<"Nilai 0-20 : Very Bad "<<<<"Soal Present Tense, jawablah dengan benar!"<<<"(Jawablah dengan huruf kecil)"<<<<"Nilai Anda Adalah : " <<<<"Keterangan : "<<<"Nilai 81-100 : Excellent "<<<"Nilai 71-80 : Very Good "<<<"Nilai 61-70 : Good "<<<"Nilai 41-60 : Fair/Enough "<<<"Nilai 21-40 : Bad "<<<"Nilai 0-20 : Very Bad "<<<<"Soal Past Tense, jawablah dengan benar!"<<<"(Jawablah dengan huruf kecil)"<<<<"Nilai Anda Adalah : " <<<<"Keterangan : "<<<"Nilai 81-100 : Excellent "<<<"Nilai 71-80 : Very Good "<<<"Nilai 61-70 : Good "<<<"Nilai 41-60 : Fair/Enough "<<<"Nilai 21-40 : Bad "<<<"Nilai 0-20 : Very Bad "<<<<"Soal Past Future Tense, jawablah dengan benar!"<<<"(Jawablah dengan huruf kecil)"<<<<"Nilai Anda Adalah : " <<<<"Keterangan : "<<<"Nilai 81-100 : Excellent "<<<"Nilai 71-80 : Very Good "<<<"Nilai 61-70 : Good "<<<"Nilai 41-60 : Fair/Enough "<<<"Nilai 21-40 : Bad "<<<"Nilai 0-20 : Very Bad "<<<<<"Bukan Pilihan Y atau T";
break;
}
}
else
{
cout<<"Tenses Tidak Ditemukan"<<<<"Apakah Anda Ingin Mempelajari Soal-Soal Lagi?"<<<"pilih Y/T : ";cin>>pilih1;
switch(pilih1)
{
case 'Y':
input_data();
break;
case 'T':
break;

default:
cout<<<"Bukan Pilihan Y atau T";
cout<<<<"Masukkan lagi Tenses yang diinginkan: ";cin>>cari;
cout<<<"1) Does my father go to work every Sunday?"<<<" No, ______ every Sunday. "<<<" a.he doesn't go b.you don't go c.he don't go"<<<" Answer : "; cin>>jwb;
if (jwb == 'a')
{
cout<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"2) The children usually ______."<<<" a.like chocolate b.likes chocolates c.likes chocolate"<<<" Answer : "; cin>>jwb;
if (jwb == 'a')
{
cout<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"3) Does he always ______ his work on time? Yes, he does."<<<" a.finished b.finish c.finishes "<<<" Answer : "; cin>>jwb;
if (jwb == 'b')
{
cout<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"4) Jane and me ______ to the zoo every sunday."<<<" a.go b.went c.goes "<<<" Answer : "; cin>>jwb;
if (jwb == 'a')
{
cout<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"5) This week Mr.Grey ______ the meeting in Perth."<<<" a.attend b.attends c.is attending "<<<" Answer : "; cin>>jwb;
if (jwb == 'c')
{
cout<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"6) Please, don't make so much noise, my children ______ now."<<<" a.studying b.study c.are studying "<<<" Answer : "; cin>>jwb;
if (jwb == 'c')
{
cout<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"7) My son has already ______ breakfast."<<<" a.had b.have c.has "<<<" Answer : "; cin>>jwb;
if (jwb == 'a')
{
cout<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"8) It ______ rained since yesterday."<<<" a.has b.has have c.was "<<<" Answer : "; cin>>jwb;
if (jwb == 'a')
{
cout<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"9) I ______ my fish for five minutes."<<<" a.feeds b.feeding c.have been feeding"<<<" Answer : "; cin>>jwb;
if (jwb == 'c')
{
cout<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"10) We ______ for you since eight o'clock."<<<" a.are waiting b.have been waiting c.waited"<<<" Answer : "; cin>>jwb;
if (jwb == 'b')
{
cout<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"1) Did your mother ______ television this morning?"<<<" a.watch b.watched c.watches "<<<" Answer : "; cin>>jwb;
if (jwb == 'a')
{
cout<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"2) She ______ much better after the operation."<<<" a.felled b.felt c.feeled "<<<" Answer : "; cin>>jwb;
if (jwb == 'b')
{
cout<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"3) Everyone ______ the professor's speech last night."<<<" a.enjoy b.enjoys c.enjoyed "<<<" Answer : "; cin>>jwb;
if (jwb == 'c')
{
cout<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"4) Yesterday, she ______ on the farm."<<<" a.is working b.work c.worked"<<<" Answer : "; cin>>jwb;
if (jwb == 'c')
{
cout<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"5) ______ Kenzie eating fried chicken in the dining room? Yes, he was."<<<" a.is b.were c.was "<<<" Answer : "; cin>>jwb;
if (jwb == 'c')
{
cout<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"6) He ______ at my friend's house last night."<<<" a.was studying b.were studying c.study "<<<" Answer : "; cin>>jwb;
if (jwb == 'a')
{
cout<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"7) When Kenzie slept tightly, Keyza ______ the cake."<<<" a.eating b.had eaten c.eaten "<<<" Answer : "; cin>>jwb;
if (jwb == 'b')
{
cout<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"8) When I arrived home, my favourite artist ______."<<<" a.is performed b.had performed c.have performed"<<<" Answer : "; cin>>jwb;
if (jwb == 'b')
{
cout<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"9) When I finished my dinner, he ______ guitar."<<<" a.had been playing b.playing c.plays"<<<" Answer : "; cin>>jwb;
if (jwb == 'a')
{
cout<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"10) When I came to Surabaya in 1980, he ______ there about five years."<<<" a.had been b.had already been leaving c.had already living"<<<" Answer : "; cin>>jwb;
if (jwb == 'b')
{
cout<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"1) Neena ______ a doctor next year."<<<" a.will become b.is becoming c.becomes"<<<" Answer : "; cin>>jwb;
if (jwb == 'a')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<<<"2) ______ to return by plane?"<<<" a.Are they going b.Will they going c.They are going"<<<" Answer : "; cin>>jwb;
if (jwb == 'a')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<<<"3) ______ at home tomorrow evening?"<<<" a.Will be your mother b.Will your mother c.Will your mother be"<<<" Answer : "; cin>>jwb;
if (jwb == 'c')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<<<"4) Students ______ examinations next week."<<<" a.face b.will facing c.are going to face"<<<" Answer : "; cin>>jwb;
if (jwb == 'c')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<<<"5) Your family ______ for you at Soekarno-Hatta Airport when you comeback from"<<<" Germany. "<<<" a.were waiting b.waited c.will be waiting"<<<" Answer : "; cin>>jwb;
if (jwb == 'c')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<<<"6) Future cars ______ on sun power instead of gasoline."<<<" a.were running b.will be running c.running"<<<" Answer : "; cin>>jwb;
if (jwb == 'b')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<<<"7) By next week, I ______ this book."<<<" a.shall have read b.would read c.can read"<<<" Answer : "; cin>>jwb;
if (jwb == 'a')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<<<"8) Shinta ______ this work by the end of this week."<<<" a.will did b.will have done c.will do "<<<" Answer : "; cin>>jwb;
if (jwb == 'b')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<<<"9) By the end of this year, we ______ Korean languange for three years."<<<" a.have been study b.shall have been studying c.studied"<<<" Answer : "; cin>>jwb;
if (jwb == 'b')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<<<"10) I will have been ______ my fish five minutes before I take this quiz"<<<" tomorrow. "<<<" a.feeds b.feed c.feeding"<<<" Answer : "; cin>>jwb;
if (jwb == 'c')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<<<"1) They ______ go to Balikpapan the following day."<<<" a.will b.are c.would"<<<" Answer : "; cin>>jwb;
if (jwb == 'c')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<<<"2) He ______ a car the previous day."<<<" a.would buy b.shall buy c.will buy"<<<" Answer : "; cin>>jwb;
if (jwb == 'a')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<<<"3) She ______ something if you came to her house."<<<" a.is giving b.would give c.can give "<<<" Answer : "; cin>>jwb;
if (jwb == 'b')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<<<"4) I ______ send a letter the day before, if you did not come."<<<" a.shall b.will c.should "<<<" Answer : "; cin>>jwb;
if (jwb == 'c')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<<<"5) I should be ______ an examination at this time the following day."<<<" a.take b.took c.taking "<<<" Answer : "; cin>>jwb;
if (jwb == 'c')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<<<"6) We would ______ at six o'clock yesterday morning."<<<" a.be play b.be playing c.be plays "<<<" Answer : "; cin>>jwb;
if (jwb == 'b')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<<<"7) He would have ______ your radio if you given it to him."<<<" a.repaired b.repairs c.repair "<<<" Answer : "; cin>>jwb;
if (jwb == 'a')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<<<"8) He ______, if he had studied hard."<<<" a.would have graduated b.is graduated c.will be graduated"<<<" Answer : "; cin>>jwb;
if (jwb == 'a')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<<<"9) By last Idul Fitri, I should have been ______ at that office for five years."<<<" a.worked b.working c.works"<<<" Answer : "; cin>>jwb;
if (jwb == 'b')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<<<"10) They would ______ been waiting for three hours, by last sunday."<<<" a.have b.has c.had "<<<" Answer : "; cin>>jwb;
if (jwb == 'a')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<

BEGUNDELZ MANIAC. Diberdayakan oleh Blogger.

Amazon MP3 Clips