Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Temporal Databases Research And Practice Lncs 1399

Authors: Opher Etzion ,Sushil Jajodia ,Suryanarayana Sripada

1st Edition

3540645195, 978-3540645191

More Books

Students also viewed these Databases questions

Question

b. Does senior management trust the team?

Answered: 1 week ago

Question

How will the members be held accountable?

Answered: 1 week ago