Question: Problem 1 (10 points) -True/False Submit a document called: Answers.doc Answer the following true/false questions. You must correctly state WHY your answer is true or

 Problem 1 (10 points) -True/False Submit a document called: Answers.doc Answerthe following true/false questions. You must correctly state WHY your answer istrue or false in order to receive credit. #include #include int main

Problem 1 (10 points) -True/False Submit a document called: Answers.doc Answer the following true/false questions. You must correctly state WHY your answer is true or false in order to receive credit. #include #include int main (int argc, char **argy) { int travel_points=1; int check=0; char answer[20]; while(!check) { printf("Enter state, national or international: "); scanf("%s", answer); if(!strcmp(answer, "state")) { travel_points=travel_points+5; printf("Adding 5 points. New total: %d ", travel_points); } else if (!strcmp(answer, "national")) { travel_points=(travel_points+5)*2; printf("Getting state points plus double points! New total: %d ", travel_points); } else if(!strcmp(answer, "international")) { travel_points*=4; printf("Getting 4x more points! New total: %d ", travel_points); } else if((strcmp(answer, "exit")==0)) { if(travel_points

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!