Question: Read and parse the flat file, dvc-schedule.txt , line by line, and find the term, section number, course, instructor, schedule, and subject information. [Part 1].


Read and parse the flat file, dvc-schedule.txt , line by line, and find the term, section number, course, instructor, schedule, and subject information. [Part 1]. Copy and paste the first couple hundred lines into another text file. Include a count variable to count how many lines read in. Display the classCode(term + section) and subjectCode parsed from each line, and the total number of lines processed. Make sure the subjectCode is processed from the course string correctly. [Part 2] After complete part 1, use the original dvc-schedule.txt (5.9 MB) more than 100,000 sections. Display the total number of lines processed. - Submission: The source file (LabExercise5.cpp) for part 2, and sample outputs of part 1 and part 2 - Sample outputs: The output was from the last semester. You may share the number of total lines in the discussion posts to check if the answer is the same as other classmates. Programmer: Ethan Yi Chiang Programmer's ID: 1538719 File:/Users/110629/Dropbox/COMSC_SourceFiles/COMSC210/Module5/scheduleV4/LabExericse5_1.cpp Total 85917 Lines Processed Program ended with exit code: 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
