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
- 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:
- 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 CoursesData.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.
***I am not allowed to put files in a package, I have to use a file reader - I did receive an answer back from this question, but the solution kept giving me this error when I would try to run it***
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 at testStudent.main(testStudent.java:28) ***
Please help!
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps
- Class field corruption must be prevented.arrow_forwardWhich of the following lists are used to mean that a class has been derived from another class? super, base, parent sub, derived, child Object, super, equals None of thesearrow_forwardIn the attributes field of an object, you can store data. The class's traits are unique to the class.arrow_forward
- Data may be stored in the attributes field of objects. The class's characteristics are the class's own.?arrow_forwardCreate a class of any domain i.e. university, showroom, student, shop. Also mention attributes for them and initialize the values using constructor and show the values for each object using custom function (out side the class) hint: min no of objects 2arrow_forwardClass field corruption must be prevented.arrow_forward
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY