From 781047ab1ab526e62a09164fb1505e4a60460ff7 Mon Sep 17 00:00:00 2001 From: fdlt3885 Date: Thu, 26 Jan 2023 09:59:11 +0000 Subject: [PATCH] Refactoring: Added one more question. What U.S. state is home to no documented poisonous snakes? --- src/main/quizproject.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index 0aa0dfe..f775e7f 100644 --- a/src/main/quizproject.c +++ b/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]); }