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

}

}

// 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 << "\n\n" << 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 << "\n\nOh well, maybe next time.\n\n"; // Prints to screen

score = 0;

cout << "You won " << "$" << score << ". :( \n\n";

}

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,000\n";

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

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

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

К-во Просмотров: 741
Бесплатно скачать Курсовая работа: Інтерактивна система навчання для вивчення англійської мови