ScholarMatic | 24/7 Homework Help

ScholarMatic Will Help You Write Your Essays and Term Papers

Answered » You can buy a ready-made answer or pick a professional tutor to order an original one.

// // // // // // // CS 215 Intermediate C++ Programming – Unit 2 – Individual Project 1 Class Session/Section: 1703A-02 Unit 1: Input/Output…

by | Nov 28, 2023 | engineering

Need some C++ coding guidance.  My assignment is to code a C++ program to read True/False (TF) and Multiple Choice (MC) questions from a text file I created (inputQA), load the questions into an array.  When the program runs it is supposed to show each question and the user inputs their answer.  After the three questions, it should end and display total points.  

Problem….    My compile/build seems to be fine as I do not get any errors. I don’t see any errors on my inputQA.txt file.   However, after the third and last question it seems to loop on the last question after it is answered correctly and then states “Question 1” but prints question 3 again….every time….  It is like I am missing something before EOF for the inFile.  Also, is there a cleaner way of accomplishing this?    I followed a UML diagram that was actually wrong, and this ended up frustrating me.   I want to understand it better and believe I made the code harder than it needed to be.   At best, can please help guide me to fix this so that it does EOF and completes the code, displaying the total.

Attached is the .cpp file and .txt file

  • Attachment 1
  • Attachment 2
ScholarMatic: Explanation & Answer

Your ready answer from a verified tutor is just a click away for as little as $14.99


  

Click Order Now to get 100% Original Answer Customized to your instructions!

HOME TO CERTIFIED WRITERS

Why Place An Order With Us?

  • Certified Editors
  • 24/7 Customer Support
  • Profesional Research
  • Easy to Use System Interface
  • Student Friendly Pricing

Have a similar question?

PLAGIRAISM FREE PAPERS

All papers we provide are well-researched, properly formatted and cited.

TOP QUALITY

All papers we provide are well-researched, properly formatted and cited.

HIGHLY SECURED

All papers we provide are well-researched, properly formatted and cited.

ScholarMatic: Get Started

Assignment Writing Service

Feel safe and secure when placing an order on our portal!
Fruitful cooperation begins with solid guarantees, and we are professional enough to promise perfect results. Let’s get it started!