Question
I need help making this program run. #include #include #include #include #include using namespace std; // function prototypes void readDataFile(ifstream &, char[], string[], string[]); void
I need help making this program run. #include #include #include #include #include using namespace std; // function prototypes void readDataFile(ifstream &, char[], string[], string[]); void calculateScores(char[],string[], double[]); void calculateGrades(double[], char[]); // global declarations for constants const int MAX_ANSWERS = 20; const int MAX_Students = 200; const double MAX_Marks = 40.0; // global declarations for a variable int studentsCounter = 0; // start main function int main() { // variables declaration ifstream inFile; string fileName; char testAnswers[MAX_STUDENTS]; string studentID[MAX_STUDENTS]; string studentAnswers[MAX_STUDENTS]; double studentScores[MAX_STUDENTS]; char studentGrades[MAX_STUDENTS]; // prompt the usre to enter the name of a file cout<< "Enter the file name"; cin>> fileNAME; // open the file and display an error message if the //file not found inFile.open(fileName); if (!inFile) { //display an error message if the file not found // and exit the program cout<< "The file"<
TFFTFFTTTTFFTFTFTFTT
ABC54301 TFTFTFTT TFTFTFFTTFT ABC59310 TFFTFFTTTTFFTFTFTFTT ABC39583 FTTFTFTTFTFFFTFTTTFTF ABC38493 FTFTTFTFTFTTF TFFTTT ABC10394 FTTFTFTFFTFTFTTFTTFT ABC10006 FTFTFFFTFFTFTFTFFTFT ABC10007 TFFTFFTTTTFFTFTFTTFT ABC38558 FTFTTFTFFTFFFTFTFTFF ABC10439 FTTTFTFTFTFTTFTFTFFT ABC10010 FTTFTFFFFTFTTTFTFTFT ABC10011 FTFFTFTTFTFTFFFTFTFT ABC10512 FTFFTTTFTFTTTFTFTFTF ABC10013 FFTTFTFTFFFTFTFFTFTT ABC10014 TFFTFFTTTTFFTFTFTFTT ABC10016 FTTTFTFTTFFTFTTFTFTT ABC10017 TFFTFFTTTTFFTFTFTFTT
TFFTFFTTTTFFTFTFTFTT
ABC54301 TFTFTFTT TFTFTFFTTFT 11 F ABC59310 TFFTFFTTTTFFTFTFTFTT 40 A ABC39583 FTTFTFTTFTFFFTFTTTFTF 7 F ABC38493 FTFTTFTFTFTTF TFFTTT 8 F ABC10394 FTTFTFTFFTFTFTTFTTFT 4 F ABC10006 FTFTFFFTFFTFTFTFFTFT 13 F ABC10007 TFFTFFTTTTFFTFTFTTFT 34 B ABC38558 FTFTTFTFFTFFFTFTFTFF 1 F ABC10439 FTTTFTFTFTFTTFTFTFFT 16 F ABC10010 FTTFTFFFFTFTTTFTFTFT -5 ABC10011 FTFFTFTTFTFTFFFTFTFT 4 F ABC10512 FTFFTTTFTFTTTFTFTFTF 10 F ABC10013 FFTTFTFTFFFTFTFFTFTT 10 F ABC10014 TFFTFFTTTTFFTFTFTFTT 40 A ABC10016 FTTTFTFTTFFTFTTFTFTT 13 F ABC10017 TFFTFFTTTTFFTFTFTFTT 40 A This is the error I am getting.
ain.cpp:1:9: error: #include expects "FILENAME" or
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started