Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help. where there are // is where code needs to be written please help. Don't ask for better pictures this is the best they

image text in transcribed

image text in transcribed

image text in transcribed

please help. where there are // is where code needs to be written please help. Don't ask for better pictures this is the best they will get just enlarge them and you should be able to read them. thanks for any and all help

The file coursedata.txt, located in the folder Data on the ca drive, contains information on CSIT course enrollments for a certain semester. The data looks like this: CSIT 104 Decker 26 CSIT 104 02 Decker 24 CSIT 473 01 Nazarenko CSIT 999 01 The data is organized into records. Each record contains the information for one course section, and includes, on separate lines: (I) the subject code and course number; (2) the section number: 3) the instructor's last name; (4) the enrollment for that section. Important: The records are ordered by course number, and the file ends with a "dummy record" for the nonexistent course, CSIT 999. Write a program to read the file and produce a report, showing the number of sections and total enrollment for each course. This report should be written to the file enrollment data, located in the Data folder on the C: drive. Here is a sample of what this report might look like: CSIT 104 74 24 CSIT 473 19

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

Students also viewed these Databases questions