Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a JAVA program for Student Course Selection that will read and load the following text files. Read on to know more about this program.

Create a JAVA program for Student Course Selection that will read and load the following text files. Read on to know more about this program.

courses text file would look like this: (Note that you can add more courses and their max size)

ABC123 5 BAT2O1 5 MAT1P1 5 SNC1D1 5 PHR2O1 5 ZAT1D1 5

staff text file would look like this: (Note that you can add more teachers and more courses)

Sheahan (Shehan is the principal name) Davidson BAT2O1 MAT1P1 SNC1D1 PHR2O1 Marving ZAT1D1 ABC123

students text file would look like this: (Note that you can add more students with their IDs and courses)

Harvey Dent 007007007 ABC123 BAT2O1 MAT1P1 SNC1D1 PHR2O1 ZAT1D1 Bruce Ward 123123123 PHR2O1 ZAT1D1 ABC123 BAT2O1 MAT1P1 SNC1D1 Sarah Decker 567567567 ZAT1D1 SNC1D1 MAT1P1

You would read and load these files in the main. Then, you would have a class for Student, Teacher, Principal, Course, School. Then, you would check to see which student has taken which course under what teacher. A course that a student has taken must match to one of the teacher`s courses and also match to the course in the course text file. If the number of students in a course exceeds the maximum size (the number beside the courses), then the program should output that it cannot register more students in this course because it is full. Once the program has identified and verified that the student`s course matches the teacher and their course, the program should read and load another text file called 'schedule' where we would store the output after identifying and verifying the student,teacher, and course name. The program should print the 'schedule' text file in main to show the output. The output should look like this:

PRINCIPAL Sheahan ---------- COURSE

ABC123

TEACHER

Marving

STUDENTS

Harvey Dent 007007007 Bruce Ward 123123123

-----------

COURSE

BAT2O1

TEACHER

Davidson

STUDENTS

Harvey Dent 007007007 Bruce Ward 123123123 Sarah Decker 567567567

..etc..

I really, really, really need this entire program to be FULLY DONE with no bugs. I will be looking over it too. This program MUST meet the requirements above, and this program MUST include File I/O and read and load four text files: courses, staff, students, and schedule.

Note that I need this program COMPLETELY DONE by Jan 25, (2019) Friday evening, EST.

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_2

Step: 3

blur-text-image_3

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

Question

Prepare and properly label figures and tables for written reports.

Answered: 1 week ago