Question: Overview: Write a program to display a summary of classes taught by a list of departments This program uses a number of different files. Two
Overview: Write a program to display a summary of classes taught by a list of departments This program uses a number of different files. Two files contain information about departments, "dept.names.txt" is a list of department names, and "dept.codes.txt" is a list of codes. There are 6 files, one for each department, named for the department codes. So there are ACC.txt, BIS.txt, BQA.txt, FIN.txt, MGT.txt, MKT.txt files. Each of these files contains a list of classes taught by that department. Output: Your web page should read the 2 department files, then loop through each department in the file, load its course file, display the results, along with a count of how many classes exist for that department. Note, since the files are in upper case letters, and the homework site uses lower case, you will want to trim off white space, and convert the file names to lowercase. The functions to do that are "strtolower" and "trim, " and can be used as shown below $courses = file(strtolower(trim($dept_codes[$i])). ".txt)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
