Open the source code file named checkanswercpp using


OVERLOADING FUNCTIONS In this lab, you complete a partially written C++ program that includes overloaded functions. The program is written to check if a student provided correct answers on a test. The test includes three questions. One question requires an int for the answer, one question requires a string for the answer, and another question requires a bool for the answer. The source code file provided for this lab includes variable declarations that are initialized with a student's answers. It also includes the necessary output statements. You must write three overloaded functions named checkQuestion. One of the functions should accept an int argument that represents the student's int answer, one should accept a string argument that represents the student's string answer, and one should accept a bool argument that represents the student's bool answer. In the functions, you should test for correct answers and return the string value "Correct" or "Incorrect". The correct int answer is 3, the correct string answer is "George Washington", and the correct bool answer is true. Comments are included in the file to help you write the remainder of the program.

1563_67797f5a-305f-425b-9a26-3c29015a8ba6.png

1. Open the source code file named CheckAnswer.cpp using Notepad or the text editor of your choice.

2. Write the C++ statements as indicated by the comments.

3. Save this source code file in a directory of your choice and then make that directory your working directory.

4. Compile the source code file CheckAnswer.cpp.

5. Execute the program.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Open the source code file named checkanswercpp using
Reference No:- TGS02194114

Expected delivery within 24 Hours