Question: Description: Write a C++ program(s) consisting of classes to manage student data and course data, as well as functions to load information from text files,

Description: Write a C++ program(s) consisting of classes to manage student data and course data, as well as functions to load information from text files, instantiate objects and output reports in the form of text files. Hand in all programs, along with your generated reports: studentCredits.txt and cityCount.txt.

Details:

Design a class Student. Attributes should include identifier, name, address, list of currently enrolled courses.

Example data: J0123 | Smith, John | 123 A St., Lincoln, NE | CS131, MATH122,

Design a class Course. Attributes should include identifier, name, credit hours and description.

Example data: CS131 | Introduction to Programming I | 3 | An introductory course Write a script that inputs student data from students.txt, inputs course data from courses.txt, and creates two reports in the form of newly created text files.

Report 1: create studentCredits.txt which includes the student name along with their number of credit hours. Data should be sorted by last name, then first name. Example output line: Smith, John 12 credits

Report 2: create cityCount.txt which includes a city, state and the number of students from that city. Data should be sorted first by state, then city. Example output line: Seward, NE 85 students

Comments:

- Use good programming practices: documentation, readable code, effective use of functions, etc.

-Use good object-oriented principles in your code: abstraction and encapsulation of data, etc.

-The students.txt file will consist of information for 50 students. (Note I was not able to upload the text file with this question. So, please work the program as if the texts file were available. I will add it myself. I just need some help getting started with this program).

-The courses.txt file will consists of information for 30 courses. -

It will be nice if the code can work for any amount of input data.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!