Browse Source

Refactoring: Added one more question. What U.S. state is home to no documented poisonous snakes?

main
fdlt3885 2 years ago
parent
commit
781047ab1a
  1. 8
      src/main/quizproject.c

8
src/main/quizproject.c

@ -102,6 +102,7 @@ void fifty_fifty(int question_num) {
"A.San Fransisco\nB.San Diego",
"C.Merida\nD.Mexico city",
"C.Russia\nD.USA\n",
"A.Alaska\nB.Washington",
};
printf("%s\n",qC[question_num]);
}
@ -168,7 +169,7 @@ int k = 0;
printf("\t\t--------------------Round 3-------------------\n\n");
printf(">>In this round you need to answer 2 questions correctly to move to Round 4<<\n\n");
initial = 4, end = 6;
initial = 4, end = 7;
printOutOption(qS,qC,aS,initial,end,randArr);
}
@ -189,6 +190,7 @@ void ask_questions(void) {
"What American city is the Golden Gate Bridge located in?\n",
"What is the capital of Mexico?\n",
"What is the name of the largest country in the world?\n",
"What U.S. state is home to no documented poisonous snakes?\n",
};
char qC[][100] = {//6
@ -198,6 +200,7 @@ void ask_questions(void) {
"A.San Fransisco\nB.San Diego\nC.New York\nD.Los Angeles",
"A.Oaxaca\nB.Puebla\nC.Merida\nD.Mexico city",
"A.India\nB.China\nC.Russia\nD.USA",
"A.Alaska\nB.Washington\nC.Ohio\nD.California",
};
@ -209,7 +212,7 @@ void ask_questions(void) {
'A',
'D',
'C',
'A',
};
int* arr = randomNumber();
@ -299,6 +302,7 @@ void hint(int question_num) {
"Hint:The Golden States Warriors play there.\n",
"Hint:It is one of the oldest and largest cities in the Americas.\n",
"Hint:The area of the largest country is 17.1 million km2.\n",
"Hint:It is the coldest state in the US.",
};
printf("%s\n",qC[question_num]);
}

Loading…
Cancel
Save