I am in a Java Programming class and our instructor has just assigned us our 1st project. The project would not be a problem if I understood the Java Programming Language, from the beginning of my Computer Science Schooling I have yet to understand this code and now that I am 3(three) classes away from graduation it is really important to me to pass these few classes. The projects instructions are long and are pasted below I could not give the actual address, because it would make you log in to view it. I greatly appreciate any help anyone can give me Thank You!!
A local college wants to verify that the candidates for graduation have met the minimum requirements to graduate (120
credit hours completed with a GPA of at least 2.0). Additionally, it wants to identify students who graduate with one of
three levels of honor: cum laude, magna cum laude, and summa cum laude.
The graduation candidates’ information is stored in a file named candidates.txt. Each student’s record is split among
two lines of the file, with the first line containing the student’s full name and the second containing the student’s number of
hours completed and cumulative grade point average. The following is an example:
Student, Ima Bea
Your program should generate four output files listing the students who meet the following criteria:
File Name Contents
cumlaude.txt Graduating students with a GPA of at least 3.5 but less than 3.7
magna.txt Graduating students with a GPA of at least 3.7 but less than 3.9
summa.txt Graduating students with a GPA of at least 3.9
noGrad.txt Students with less than 120 hours completed or a GPA less than 2.0
In the first three files, include each qualifying student’s name and GPA (separated by a space) on a single line. In the last
file, include the student’s name, hours completed, and GPA (separated by spaces) on a single line. Make sure that each
GPA shows two digits after the decimal point. If a student is graduating but does not meet the criteria for one of the
honors designations, the student’s information should not be written to a file. Students who do not meet the required
number of credit hours should not be added to any of the honors designation files regardless of GPA.
The number of candidates in the original file is unknown, so you'll need to read these records until you reach the end of
the file. Remember that you can only open one file at a time with each output file variable, so you'll need at least four
output file variables for this project. Assume that you are permitted to overwrite any file if it already exists (do not append
to the file). Your program does not need to generate any output to the screen, but it would be wise to let the user know
whether the program was successful in processing the input file and generating the output files.
BONUS (5 points): The number of credit hours for each student should not be negative. If the program encounters a
student with a negative number of credit hours, write the student’s name, hours completed, and GPA (separated by
spaces) on a single line in the file hoursError.txt rather than any of the four aforementioned files.
BONUS (5 points): The grade point average of each student should not be negative, nor should it exceed 4.0 (assume
the college is not on the plus / minus system). If the program encounters a student with an erroneous grade point
average, write the student’s name, hours completed, and GPA (separated by spaces) on a single line in the file
gpaError.txt rather than any of the five aforementioned files (but if the student’s number of credit hours was already
indicated as an error in the file hoursError.txt, don’t write the student’s information to this file as well).
BONUS (10 points): Calculate the total number of students written to each file, and write this total on a new line at the
end of the file.
No bonus credit will be given unless the standard requirements of the assignment are met! Make sure that you
have the basic functionality working regardless of whether or not you are able to complete the bonus portion
Your code should include comments at the top listing your name, the course, the project number, and a brief description of
the program. It should also include at least five inline comments in your code explaining what your code is doing at that
No late work will be accepted! If you need assistance with your code, e-mail your instructor at least one day in
advance. You may discuss general details of the assignment with your classmates, but do not look at or borrow
another student’s code!