Create student object class (Student.java) Student objects should have the following attributes: student name major class name course id grade credits Create Course object class (Course.java) Course object should be the following attributes: course id instructor id room id Create testStudent class Output Create a report that has appropriate headings and 1 line of detail for each student record read in. Detail lines should include the following information: student name, class id, Instructor id, room id, grade, credits, comment   Read student information, process the information and print an output line for each student record in the ClassesData.txt file. You will also need the CoursesData.txt file for courses information.   This is the information included in the ClassesData.txt file 1001Intro. to CompSci 4ALBERT, PETER A. Comp Info System A 1001Intro. to CompSci 4ALLENSON, SHEILA M. Comp Info System B 1001Intro. to CompSci 4ANDERSON, ALENE T. Comp Info System A 1001Intro. to CompSci 4HENDRIX, JAMES D. Lib Arts - MIS C 1001Intro. to CompSci 4CANNON, FREDDY B.B. Comp Info System B 1002Visual Basic 3ALBERT, PETER A. Comp Info System C 1002Visual Basic 3ALLENSON, SHEILA M. Comp Info System D 1002Visual Basic 3ANDERSON, ALENE T. Comp Info System A 1002Visual Basic 3HENDRIX, JAMES D. Lib Arts - MIS B 1002Visual Basic 3CANNON, FREDDY B.B. Comp Info System B 1003Cisco Networking I 4ALBERT, PETER A. Comp Info System C 1003Cisco Networking I 4ALLENSON, SHEILA M. Comp Info System A 1003Cisco Networking I 4ANDERSON, ALENE T. Comp Info System A 1003Cisco Networking I 4HENDRIX, JAMES D. Lib Arts - MIS D 1004Cisco Networking III3ALBERT, PETER A. Comp Info System B 1004Cisco Networking III3ALLENSON, SHEILA M. Comp Info System C 1004Cisco Networking III3ANDERSON, ALENE T. Comp Info System A 1004Cisco Networking III3CANNON, FREDDY B.B. Comp Info System B 1004Cisco Networking III3HELLER, HELEN H. Lib Arts - MIS A 1004Cisco Networking III3HENDRIX, JAMES D. Lib Arts - MIS F This is the information included in the CourseData.txt 1001WATNE BABCOCK134 1002KROSHUS HORTON30 1003SCHILLINGER LIBRARY118 1004SCHWANTZ BABCOCK134 The comments section of the detail line should display the String "Great Job!" if the student gets an 'A' grade. There should be five files total, starting with the three java files - Student.java, Course.java, testStudent.java, along with the text files ClassesData.txt and CourseData.txt.

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter11: Operating Systems
Section: Chapter Questions
Problem 14VE
icon
Related questions
Question

Create student object class (Student.java)

  • Student objects should have the following attributes:
    • student name
    • major
    • class name
    • course id
    • grade
    • credits

Create Course object class (Course.java)

  • Course object should be the following attributes:
    • course id
    • instructor id
    • room id

Create testStudent class

  • Output
    • Create a report that has appropriate headings and 1 line of detail for each student record read in. Detail lines should include the following information:
      • student name,
      • class id,
      • Instructor id,
      • room id,
      • grade,
      • credits,
      • comment

 

  • Read student information, process the information and print an output line for each student record in the ClassesData.txt file. You will also need the CoursesData.txt file for courses information.

 

This is the information included in the ClassesData.txt file

1001Intro. to CompSci 4ALBERT, PETER A. Comp Info System A
1001Intro. to CompSci 4ALLENSON, SHEILA M. Comp Info System B
1001Intro. to CompSci 4ANDERSON, ALENE T. Comp Info System A
1001Intro. to CompSci 4HENDRIX, JAMES D. Lib Arts - MIS C
1001Intro. to CompSci 4CANNON, FREDDY B.B. Comp Info System B
1002Visual Basic 3ALBERT, PETER A. Comp Info System C
1002Visual Basic 3ALLENSON, SHEILA M. Comp Info System D
1002Visual Basic 3ANDERSON, ALENE T. Comp Info System A
1002Visual Basic 3HENDRIX, JAMES D. Lib Arts - MIS B
1002Visual Basic 3CANNON, FREDDY B.B. Comp Info System B
1003Cisco Networking I 4ALBERT, PETER A. Comp Info System C
1003Cisco Networking I 4ALLENSON, SHEILA M. Comp Info System A
1003Cisco Networking I 4ANDERSON, ALENE T. Comp Info System A
1003Cisco Networking I 4HENDRIX, JAMES D. Lib Arts - MIS D
1004Cisco Networking III3ALBERT, PETER A. Comp Info System B
1004Cisco Networking III3ALLENSON, SHEILA M. Comp Info System C
1004Cisco Networking III3ANDERSON, ALENE T. Comp Info System A
1004Cisco Networking III3CANNON, FREDDY B.B. Comp Info System B
1004Cisco Networking III3HELLER, HELEN H. Lib Arts - MIS A
1004Cisco Networking III3HENDRIX, JAMES D. Lib Arts - MIS F

This is the information included in the CourseData.txt

1001WATNE BABCOCK134
1002KROSHUS HORTON30
1003SCHILLINGER LIBRARY118
1004SCHWANTZ BABCOCK134

The comments section of the detail line should display the String "Great Job!" if the student gets an 'A' grade.

There should be five files total, starting with the three java files - Student.java, Course.java, testStudent.java, along with the text files ClassesData.txt and CourseData.txt.

 

 

Cs. C:\WINDOWS\system32\cmd.exe
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 2 out of bounds for length 2
at TestStudent.main(TestStudent.java:30)
Press any key to continue .
Transcribed Image Text:Cs. C:\WINDOWS\system32\cmd.exe Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 2 out of bounds for length 2 at TestStudent.main(TestStudent.java:30) Press any key to continue .
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning