Question: Your program should follow the below requirements: You will only need one class for this project called StudentReport In your class you will have the
Your program should follow the below requirements:
- You will only need one class for this project called StudentReport
- In your class you will have the following methods:
- main:
- It will control the flow of your program.
- It will prompt the user to select one of the following options:
- Print a list of all students
- main:
This will print out all the student names to the console.
-
-
- Generate a report card for a specific student
- If selected it will ask the user to enter the name of the student
- It will then call the writeFile method to generate the report card
- Display statistics.
- It will print out the average of the class, the highest total and the lowest total.
- Generate a report card for a specific student
- readFile:
- it will read the .csv file and store the values in the arrays we have.
- writeFile:
- it will generate a report card for the selected student and save it as a .txt file.
-
- You can add any methods and variables you find suitable.
- Your report file could have any formatting, but it should include the following:
- The students name
- Their grade in every quiz, exam with the appropriate label.
ForExams will be worth 100pts
example: Exam one: 50
-
- Their Total.
- Their letter grade. (90 and above A, 80-89 B,70-79 C, 60-69 D, below 69 F)
- Other things to note:
- Only arraylists are allowed. (no regular arrays are allowed in your program)
- The file could have any number of students or assignments.
- You should not hard code anything related to the file.
- DO NOT USE MAP INTERFACE
- USE TRY/CATCH block for read/write
SAMPLE .Csv
Name,Exam1(if any),Exam2(if any),Exam3(if any),Exam4(if any),Exam5(if any),Exam6(if any),Exam7(if any).etc
Michael,8,9,10,60,80,100
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
