Question
The pictures attached contain information about the program that I have. All I need help in is implementing the following: 9. Add (to the Array
The pictures attached contain information about the program that I have. All I need help in is implementing the following:
9. Add (to the Array list) with new student record from a TEXT FILE. In this text file, you will need to include all the information required in the Student Class, as well as the information required either in the Student common class or student major class.
10. Add (to the Array list) with new student record from a CSV FILE. In this text file, you will need to include all the information required in the Student Class, as well as the information required either in the Student common class or student major class.
Guidelines for the solutions:
- Add the new records from an appropriate file. It will need to be integrated into your existing program. You will have to check if the student record has already existed in the ArrayList, if yes, an appropriate message needs to be output to inform the user and ask the user to confirm if the record needs to be added. If yes, the record will be added, and if no, the record will not be added.
- With the new student records added you will need to check if option 8 can be used. (Option 8 can only be selected one option 7 has been selected).
Unit in the major (Unit_Major class): (a) Will have the information of the unit ID (of type string; e.g. ICT283), and the level of the unit (of type integer; e.g. 2 for second year) (b) There is one assignment, marked out of a maximum of 100 mark. (c) There is one project, marked out of a maximum of 100 mark. (d) There is weekly practical work. The marks for this component are recorded as a total mark obtained (marked out of a maximum of 10 marks) for all practical work demonstrated during the semester. (e) There is one final examination that is marked out of a maximum of 100 marks and recorded separately. (f) An overall mark (to be calculated within the class) (g) A final grade, which is a string (avoid code duplication for calculating this) The final grade is to be awarded on the basis of an overall mark, which is a number in the range 0 to 100 and is obtained by calculating the weighted average of the student's performance in the assessment components. The criteria for calculating the weighted average is as defined below: The assignment is worth 15%, the project is worth 35%, the practical work is worth 10%, and the final exam is worth 40% of the final grade. A grade is to be awarded for the students as follows: An overall mark of 80 or higher is an HD, an overall mark of 70 or higher (but less than 80) is a D, an overall mark of 60 or higher (but less than 70) is a C, an overall mark of 50 or higher (but less than 60) is a P, and an overall mark below 50 is an N. Client class: The client program will allow entry of these data for several different student into an ArrayList and then perform some analysis and queries. Your client class (program) will provide the user with a menu to perform the following operations. You will also need to load the information of the students from a CSV file (student.csv) before displaying the menu. You only need one ArrayList and one menu for this. For the csv file, your first item can be C or M to differentiate whether the entry is creating a Student_Common object, or a Student_Major object. You can then decide how you want other data to be listed in the csv file. You should specify clearly in your documentation the data format of the CSV files used in this assignment. 1. Quit (exit the program) 2. Add (to the ArrayList) all the marks information about a common year student or a student in the major by reading it from another CSV file. Your program will ask for the file name. 3. Given student number (ID), remove the specified student and relevant information from the ArrayList. It is always good to ask the user to confirm again before removing the record. For confirmation, output the student number (ID) and the name to the user. 4. Output all details currently held in the ArrayList. 5. Determine and display how many common year students obtained an overall mark equal to or above the average overall mark and how many obtained an overall mark below the average overall mark. Note: You only need to perform this task on common year students only. 6. Given a student number (ID), report the grade information (using reportGrade) of the student with that number. If the student is not found in the ArrayList, an appropriate error message is
Step by Step Solution
There are 3 Steps involved in it
Step: 1
To implement options 9 and 10 which involve adding student records from text files and CSV files respectively youll need to create methods in your client class to handle reading data from these files ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started