Design a class student that contains

  

Design a class Student that contains the following members:1- String fields firstName, lastName and status.
2- char field letterGrade.
3- double fields grade1, grade2, grade3
4- double field average
5- A two-argument constructor that takes firstName and lastName as parameters.
6- computeAverage method. Take into account that you will have different number of grades depending on the student.
7- computeStatus method (If average is < 70, the status will be “Failing”. Otherwise, the status is “Passing”)
8- computeLetterGrade method (If average >= 90 letterGrade is ‘A’, If average >= 80 letterGrade is ‘B’, If average >= 70 letterGrade is ‘C’, If average >= 60 letterGrade is ‘D’, else letterGrade is ‘F’)
9- get and set methods for all fields.
Design a class StudentList that contains the following members:
1- An ArrayList of Student objects students.
2- readStudents method that prompts the user for an input file name (use JFileChooser) and reads the contents of the input file into students. You can expect the file to be a text file with the following format:
firstName|lastName|Grade1|Grade2 //Student 1
firstName|lastName|Grade1|Grade2|Grade3 //Student 2
firstName|lastName|Gra de1 //Student 3
firstName|lastName //Student 4

Sample input file contents:
Rodolfo|Cruz|78.6|99.7
Maria|Vargas|90.5|100|100
Julio|Perez|78.1
Juan|Rodriguez
Notes:
use String.Split() method to parse the input.
• The file could have any length; therefore, you cannot make assumptions about how many students you’ll find in the file.
• You can assume that the information for every student will include firsName, LastName and between 0 and 3 grades.
• Need to populate the average, status and letterGrade fields as appropriate.3- saveStudentsToDB method that prompts the user for an DataBase file name (use JFileChooser) and writes the contents of students to the DB. The database will contain the table StudentsTbl with the following columns: ID (ignore), FirstName, LastName, Grade1, Grade2, Grade3, Average, Status and LetterGrade.
4- findStudent method that prompts the user for a student name and last name and shows a message indicating that the student was either found or not found in the DB. Continue asking the user until the user enters end.
5- writeStudents method that prompts the user for an output file name (use JFileChooser) and writes the contents of the StudentsTbl from the DB to the output file with the following format:
Name Grade 1 Grade 2 Grade 3 Average Letter Status
Grade
Rodolfo Cruz 100.00 100.00 100.00 100.00 A Passing
Julio Perez 60.00 60.00 60.00 60.00 F Failing6- writeSortedStudents method that prompts the user for an output file name (use JFileChooser) and writes the contents of the StudentsTbl from the DB to the output file in ascending order of average (use order by SQL clause) with the following format:
Name Grade 1 Grade 2 Grade 3 Average Letter Status
Grade
Rodolfo Cruz 100.00 100.00 100.00 100.00 A Passing
Julio Perez 60.00 60.00 60.00 60.00 F FailingCreate a class TestStudents to test your work. This class will have a main that looks exactly like this:
public static void main(String[] args) {
StudentList studentList = new StudentList();studentList.readStudents();
studentList.saveStudentsToDB();
studentList.writeStudents();
studentList.writeSortedStudents();
studentList.findStudent();
}

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more