Question
The given courses1.txt, courses2.txt, courses3.txt and courses4.txt les contain information about department courses oered this semester. Each le starts with name of class and how
The given courses1.txt, courses2.txt, courses3.txt and courses4.txt les contain information about department courses oered this semester. Each le starts with name of class and how many courses are listed in the le, followed by course code, course name and enrolled students per line. Write a program which asks the user for class year and enrollment range, loads the necessary info from les into a dynamic structure array and displays the codes and names of matching courses. Dont forget to free your pointers before exiting.
Sample Run
Enter course file name: courses3.txt Enter enrollment range: 50 60
ThirdYear courses that have 50-60 students:
CENG356 DatabaseManagementSystems
CENG382 WebDevelopment
__________________________
FILES:
courses1.txt
FirstYear 3
CENG111 FundementalsOfComputerEngineering 57
CENG114 ComputerProgramming 53
CENG124 DiscreteStructures 120
courses2.txt
SecondYear 5
CENG218 DataStructures 67
CENG222 ComputerOrganization 107
CENG236 NumericalComputations 95
CENG241 ObjectOrientedProgramming 52
CENG290 DataCommunications 108
courses3.txt
ThirdYear 4
CENG328 OperatingSystems 63
CENG356 DatabaseManagementSystems 58
CENG382 WebDevelopment 54
CENG396 SoftwareEngineering 75
courses4.txt
FourthYear 2
CENG442 ProgrammingLanguageConcepts 63
CENG491 FormalLanguages and Automata 49
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