I’m coding a C++ quiz program that reads questions from a few…

Question Answered step-by-step I’m coding a C++ quiz program that reads questions from a few… I’m coding a C++ quiz program that reads questions from a few different quiz txt files, where the question look like this:  {mc} When a C program starts, the function that gets executed is called ________[ ] principal[X] main[ ] function[ ] func[ ] program{mc} A C program can have only one function.[ ] True[X] False{mc} means multiple choice and {ma} means multiple answers are valid. [ ] – marks an incorrect answer[X] – marks a correct answer The file can have maximum 60 questions. Each question can have maximum 10 answers. The text of a question can have maximum 1024 characters, and the text of an answer can have maximum 128 characters. I need to create a function to check each quiz to make sure it has at least 5 questions and that every question has an [X] denoting the correct answer. How do I read one question at a time from the file and check for the [X]?  Computer Science Engineering & Technology C++ Programming OOP 224 Share QuestionEmailCopy link Comments (0)