Xreferat.com » Рефераты по информатике и программированию » Інтерактивна система навчання для вивчення англійської мови

Інтерактивна система навчання для вивчення англійської мови

cout << badAnswer01;

delay(3000);

score = 32000;

walkAway();

}

}


void answer02()

{

clrscr();


cout << question02;

cout << "1. Brown n";

cout << "3. White n";

cout << numberOfAnswer2;

cin >> yourAnswer;


if (yourAnswer == 1)

{

cout << goodAnswer02;

delay(3000);

correctAnswers++;

score = 125000;

}


if (yourAnswer != 1)

{

cout << badAnswer02;

delay(3000);

score = 32000;

walkAway();

}

}


void answer03()

{

clrscr();


cout << question03;

cout << " n";

cout << "3. 1025 4. 1015n";

cout << numberOfAnswer2;

cin >> yourAnswer;


if (yourAnswer == 4)

{

cout << goodAnswer03;

delay(3000);

correctAnswers++;

score = 250000;

}


if (yourAnswer != 4)

{

cout << badAnswer03;

delay(3000);

score = 32000;

walkAway();

}

}


void answer04()

{

clrscr();


cout << question04;

cout << " 2. Nancy Cartwrightn";

cout << "3. Nancy Drew n";

cout << numberOfAnswer2;

cin >> yourAnswer;


if (yourAnswer == 2)

{

cout << goodAnswer04;

delay(3000);

correctAnswers++;

score = 500000;

}


if (yourAnswer != 2)

{

cout << badAnswer04;

delay(3000);

score = 32000;

walkAway();

}

}


void answer05()

{

clrscr();


cout << question05;

cout << "1. Christopher Reeves n";

cout << "3. George Reeves n";

cout << numberOfAnswer2;

cin >> yourAnswer;


if (yourAnswer == 3)

{

cout << goodAnswer05;

delay(3000);

correctAnswers++;

score = 1000000;

}


if (yourAnswer != 3)

{

cout << badAnswer05;

delay(3000);

score = 32000;

walkAway();

}

}


// End of 50/50 functions


int walkAway() // Decides how the program will end

{

delay(3000); // Pauses for 3 seconds


if (correctAnswers >= 1 && correctAnswers < 15)

{

cout << "nn" << yourName <<", you answered " << correctAnswers << "n"; // Prints how many questions answered of

cout << "out of " << counter << " attempted questions.n"; // how many attempted to the screen

cout << "You've won " << "$" << score << "!";

}


if (correctAnswers < 1) // Executes if correctAnswers is less than 1

{

cout << "nnOh well, maybe next time.nn"; // Prints to screen

score = 0;

cout << "You won " << "$" << score << ". :( nn";

}


if (correctAnswers == 15) // Executes if correctAnswers is equivalent to 10

{

while (counter2 < 10)

{

counter2++;

clrscr();

delay(300);

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

cout << "1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000 1,000,000n";

delay(300);

clrscr();

delay(300);


counter2++; // Increases counter2 by one


cout << "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$n";

cout << "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$n";

cout << "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$n";

cout << "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$n";

cout << "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$n";

cout << "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$n";

cout << "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$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$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$n";

cout << "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$n";

cout << "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$n";

cout << "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$n";

cout << "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$n";

cout << "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$n";

cout << "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$n";

delay(300);

clrscr();

delay(300);

}


cout << "Congradulations, " << yourName << ".n";

cout << "You've won $1,000,000!!!nn";

}


cout << "nnTaken from Television Series 'Who Wants To Be A Millionaire'n"; // Prints to screen

cout << "Programmed by Gordon C. December 2001nn"; // in any case


return 0;

}


void continueProgram() // Gives user option to continue or quit

{

delay(5000);

clrscr(); // Clears the screen


cout << "Please enter your FIRST name ONLY: ";

cin >> yourName;


delay(500);


clrscr();


cout << "Hello, " << yourName << ". Welcome to...n";

delay(2000);


cout << "3. 1025 4. 1015n";

cout << numberOfAnswer;

cout << numberOfAnswer2;

cin >> yourAnswer;


if (yourAnswer == 4)

{

cout << goodAnswer03;

delay(3000);

correctAnswers++;

score = 250000;

}


if (yourAnswer == 1 || yourAnswer == 2 || yourAnswer == 3)

{

cout << badAnswer03;

delay(3000);

score = 32000;

walkAway();

return 0;

}


if (yourAnswer == 5)

{

if (fiftyFiftyUsed == 1)

{

cout << "nSorry 50/50 has already been used!n";

delay(3000);

clrscr();

goto loop02;

}


if (fiftyFiftyUsed != 1)

{

fiftyFiftyUsed = 1;

answer03();

if (yourAnswer != 4)

{

score = 32000;

return 0;

}


}

}


if (yourAnswer == 6)

{

if (phoneFriendUsed == 1)

{

cout << "Sorry, phone a friend has been used!n";

delay(3000);

clrscr();

goto loop02;

}


if (phoneFriendUsed != 1)

{

phoneFriendUsed = 1;


delay(2000);

cout << "Dialing...n";

delay(2000);

cout << "You have been connected to " << people03 << ".n";

cout << people03 << ",n" << question03 << "n";

cout << "1. 1035 2. 1075n";

cout << "3. 1025 4. 1015n";

delay(2000);

cout << "nn" << people03 << ": " << "I'm no math expert. I couldn't tell ya. Sorry.n";

cout << numberOfAnswer2;

cin >> yourAnswer;


if (yourAnswer == 4)

{

cout << goodAnswer03;

delay(3000);

correctAnswers++;

score = 250000;

}


if (yourAnswer != 4)

{

cout << badAnswer03;

delay(3000);

score = 32000;

walkAway();

return 0;

}


if (yourAnswer == 7)

{

score = 32000;

walkAway();

return 0;

}


if (yourAnswer < 1 || yourAnswer > 7)

{

cout << badAnswer03;

delay(3000);

score = 32000;

walkAway();

return 0;

}

}


}


if (yourAnswer == 7)

{

score = 32000;

walkAway();

return 0;

}


if (yourAnswer != 1 && yourAnswer != 2 && yourAnswer != 3 && yourAnswer != 4 && yourAnswer != 5 && yourAnswer != 6 && yourAnswer != 7)

{

score = 32000;

walkAway();

return 0;

}


clrscr();


counter++;


cout << "Try for $500000nn";

delay(2000);

clrscr();


loop03:

cout << question04;

delay(3000);

cout << "1. Nancy Sinatra 2. Nancy Cartwrightn";

delay(1000);

cout << "3. Nancy Drew 4. Nancy Reagann";

cout << numberOfAnswer;

cout << numberOfAnswer2;

cin >> yourAnswer;


if (yourAnswer == 2)

{

cout << goodAnswer04;

delay(3000);

correctAnswers++;

score = 500000;

}


if (yourAnswer == 1 || yourAnswer == 3 || yourAnswer == 4)

{

cout << badAnswer04;

delay(3000);

score = 32000;

walkAway();

return 0;

}


if (yourAnswer == 5)

{

if (fiftyFiftyUsed == 1)

{

cout << "nSorry 50/50 has already been used!n";

delay(3000);

clrscr();

goto loop03;

}


if (fiftyFiftyUsed != 1)

{

fiftyFiftyUsed = 1;

answer04();

if (yourAnswer != 2)

{

score = 32000;

return 0;

}


}

}


if (yourAnswer == 6)

{

if (phoneFriendUsed == 1)

{

cout << "Sorry, phone a friend has been used!n";

delay(3000);

clrscr();

goto loop03;

}


if (phoneFriendUsed != 1)

{

phoneFriendUsed = 1;


delay(2000);

cout << "Dialing...n";

delay(2000);

cout << "You have been connected to " << people04 << ".n";

cout << people04 << ",n" << question04 << "n";

cout << "1. Nancy Sinatra 2. Nancy Cartwrightn";

cout << "3. Nancy Drew 4. Nancy Reagann";

delay(2000);

cout << "nn" << people04 << ": " << "I love that show! It's Nancy Cartwright. 100% sure.n";

cout << numberOfAnswer2;

cin >> yourAnswer;


if (yourAnswer == 2)

{

cout << goodAnswer04;

delay(3000);

correctAnswers++;

score = 500000;

}


if (yourAnswer != 4)

{

cout << badAnswer04;

delay(3000);

score = 32000;

walkAway();

return 0;

}


if (yourAnswer == 7)

{

score = 32000;

walkAway();

return 0;

}


if (yourAnswer < 1 || yourAnswer > 7)

{

cout << badAnswer04;

delay(3000);

score = 32000;

walkAway();

return 0;

}

}


}


if (yourAnswer == 7)

{

score = 32000;

walkAway();

return 0;

}


if (yourAnswer != 1 && yourAnswer != 2 && yourAnswer != 3 && yourAnswer != 4 && yourAnswer != 5 && yourAnswer != 6 && yourAnswer != 7)

{

score = 32000;

walkAway();

return 0;

}


clrscr();


counter++;


cout << "Try for the Grand Prize $1,000,000!!!nn";

delay(3000);

clrscr();


loop04:

cout << question05;

delay(3000);

cout << "1. Christopher Reeves 2. Don Adamsn";

delay(1000);

cout << "3. George Reeves 4. Dean Caann";

cout << numberOfAnswer;

cout << numberOfAnswer2;

cin >> yourAnswer;


if (yourAnswer == 3)

{

cout << goodAnswer05;

delay(3000);

correctAnswers++;

score = 1000000;

}


if (yourAnswer == 1 || yourAnswer == 2 || yourAnswer == 4)

{

cout << badAnswer05;

delay(3000);

score = 32000;

walkAway();

return 0;

}


if (yourAnswer == 5)

{

if (fiftyFiftyUsed == 1)

{

cout << "nSorry 50/50 has already been used!n";

delay(3000);

clrscr();

goto loop04;

}


if (fiftyFiftyUsed != 1)

{

fiftyFiftyUsed = 1;

answer05();

if (yourAnswer != 3)

{

score = 32000;

return 0;

}


}

}


if (yourAnswer == 6)

{

if (phoneFriendUsed == 1)

{

cout << "Sorry, phone a friend has been used!n";

delay(3000);

clrscr();

goto loop04;

}


if (phoneFriendUsed != 1)

{

phoneFriendUsed = 1;


delay(2000);

cout << "Dialing...n";

delay(2000);

cout << "You have been connected to " << people05 << ".n";

cout << people05 << ",n" << question05 << "n";

cout << "1. Christopher Reeves 2. Don Adamsn";

cout << "3. George Reeves 4. Dean Caann";

delay(2000);

cout << "nn" << people05 << ": " << "I know Christopher Reeves is well known for that. I think it's him. 50% sure.n";

cout << numberOfAnswer2;

cin >> yourAnswer;


if (yourAnswer == 3)

{

cout << goodAnswer05;

delay(3000);

correctAnswers++;

score = 1000000;

}


if (yourAnswer != 3)

{

cout << badAnswer05;

delay(3000);

score = 32000;

walkAway();

return 0;

return 0;

}

}


}


if (yourAnswer == 7)

{

score = 32000;

walkAway();

return 0;

}


if (yourAnswer != 1 && yourAnswer != 2 && yourAnswer != 3 && yourAnswer != 4 && yourAnswer != 5 && yourAnswer != 6 && yourAnswer != 7)

{

score = 32000;

walkAway();

return 0;

}


walkAway();

return 0;

}


int main()

{

clrscr();


cout << "*******************************n";

cout << "* Who Wants To Be *n";

cout << "* A *n";

cout << "* Millionaire?! *n";

cout << "*******************************n";


continueProgram();

}

Приклад скріншоту роботи програми


Інтерактивна система навчання для вивчення англійської мови

Скрін 1. Простий текстовий інтерфейс роботи користувача з програмою


Програма має простий інтуїтивний інтерфейс, який схожий на той, що використовували старі ігрові програми – так звані текстові квести. Розібратися з ним не потребує багато зусиль. Ще раз підкреслимо що всі листинги та головний запускаємий модуль знаходяться на дискетці.

Висновки


Результатом нашої роботи є програма яка вчитель англійської мови. Дана програма має досить простий інтерфейс та алгоритмічну структуру. В якості інструменту розробки ми взяли мову програмування C++Builder.

Саме такий вибір дозволив в значній мірі спростити процес розробки та реалізації даного програмного продукту. Відмітимо лише, що дана програма має простий текстовий інтерфейс управління і не потребує попереднього навчання при роботі при роботі з собою.

Література


Касаткин А.И., Вальвачев А.Н. Профессиональное прогрпммирование на языке Си. Мн., 1992. 240 С.

Нейбауэр А. Моя первая программа на С/С++. П., 1995. 368 С.

Бруно Бабэ. Просто и ясно о Borland C++. М., 1996. 400 С.

Шамас Н.К. Основы С++ и обьектно-ориентированного программирования. К., 1996. 448 С.

Если Вам нужна помощь с академической работой (курсовая, контрольная, диплом, реферат и т.д.), обратитесь к нашим специалистам. Более 90000 специалистов готовы Вам помочь.
Бесплатные корректировки и доработки. Бесплатная оценка стоимости работы.

Поможем написать работу на аналогичную тему

Получить выполненную работу или консультацию специалиста по вашему учебному проекту
Нужна помощь в написании работы?
Мы - биржа профессиональных авторов (преподавателей и доцентов вузов). Пишем статьи РИНЦ, ВАК, Scopus. Помогаем в публикации. Правки вносим бесплатно.

Похожие рефераты: