Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Download the 3 text file docs here: https://drive.google.com/drive/folders/1BLCbFpo_U0mNoYe006nRL2Tq6YDEiq5j?usp=sharing Part1: You've been hired by Stevens Institute of Technology to make adata repository of courses, students, and

Download the 3 text file docs here:

https://drive.google.com/drive/folders/1BLCbFpo_U0mNoYe006nRL2Tq6YDEiq5j?usp=sharing

Part1:

You've been hired by Stevens Institute of Technology to make adata repository of courses, students, and instructors.The system will be used to help students track their required courses, the courses they have successfully completed, their grades,GPA, etc.The system will also be used by faculty advisors to help students tocreate study plans.We will continue to add new features tothis solution over the coming weeksso you'll want to think carefully about a good design and implementation.

Your assignment this week is to begin to build the framework for your project and summarize student and instructor data.You'll need to download three ASCII, tab separated,data files:

1.students.txt

  • Provides information about each student
  • Each line has the format: CWID\tName\tMajor (where \t is the character)

2.instructors.txt

  • Provides information about eachinstructor
  • Each line has the format: CWID\tName\tDepartment (where \t is the character)

3.grades.txt

  • Specifies the student CWID, course, and grade for that course, and the instructor CWID
  • Each line has the format: Student CWID\tCourse\tLetterGrade\tInstructor CWID

Your assignment is to read the data from each of the three files and store it in a collection of classes that are easy to process to meet the following requirements:

  • Your solution should allow a single program to create repositories for different sets of data files, e.g. one set of files for Stevens, another for Columbia University, and a third for NYU.Each university will have different directories of data files.Hint: you should define a class to hold all of the information for a specific university.
  • You may hard code the names of each of the required data file names within a directory, e.g. "students.txt", "instructors.txt", and "grades.txt".Your solution should accept the directory path where the three data files exist so you can easily create multiple sets of input files for testing.I'll test your solution against multiple data directories representing different universities so be sure your solution allows me to easily run against multiple data directories.
  • Printwarning messages if the input file doesn't exist or doesn't meet the expected format.
  • Printwarning messages if the grades file includes an unknown instructor or student
  • Use PrettyTable to generate and print a summary table of all of the students with their CWID, name, and asortedlist of the courses they've taken (as specified in the grades.txt file).
  • Use PrettyTable to generate and print a summary table of each of the instructors who taught at least one course with their CWID, name, department, the course they've taught, and the number of students in each class.
  • Implement automated tests to verify that the data in the prettytables matches the data from the input data files.
  • Youdo NOTneed to implement automated tests to catch all possible error conditions but your program should print relevant error messages when invalid or missing data is detected.
  • Your solution SHOULD print error messages and warnings to the user about inconsistent or bad data, e.g. a data file with the wrong number of fields or a grade for an unknown student or instructor.

Here's an example of theStudent and Instructor summary tables. Note that the completed courses are sorted alphabetically:

image text in transcribed
\f

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions