Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Youll develop a Java program with a table user interface that shows student marks, using JavaFX. 1.Create a class, called StudentRecord, which represents one row

Youll develop a Java program with a table user interface that shows student marks, using JavaFX.

1.Create a class, called StudentRecord, which represents one row of data for our student. A StudentRecord should contain the following fields:

Student ID, Midterm, Assignments, Final exam, Final Mark, Letter Grade

The letter grade will be determined from the following table:

image text in transcribed

2. Use the following DataSource class that generates some sample StudentRecord instances:

public class DataSource { public static ObservableList getAllMarks() { ObservableList marks = FXCollections.observableArrayList(); // Student ID, Assignments, Midterm, Final exam marks.add(new StudentRecord("100100100", 75.0f, 68.0f, 54.25f)); marks.add(new StudentRecord("100100101", 70.0f, 69.25f, 51.5f)); marks.add(new StudentRecord("100100102", 100.0f, 97.0f, 92.5f)); marks.add(new StudentRecord("100100103", 90.0f, 88.5f, 68.75f)); marks.add(new StudentRecord("100100104", 72.25f, 74.75f, 58.25f)); marks.add(new StudentRecord("100100105", 85.0f, 56.0f, 62.5f)); marks.add(new StudentRecord("100100106", 70.0f, 66.5f, 61.75f)); marks.add(new StudentRecord("100100107", 55.0f, 47.0f, 50.5f)); marks.add(new StudentRecord("100100108", 40.0f, 32.5f, 27.75f)); marks.add(new StudentRecord("100100109", 82.5f, 77.0f, 74.25f)); return marks; } } 

3. Create a table that will show a list of StudentRecord objects, using our DataSource data

Note: This table user interface can use FXML or you can define it programmatically

image text in transcribed

Minimum 80 70 60 50 0) Maximum 100 79 69 59 49 Lab 05 Solutions SID 100100100 100100101 100100102 100100103 100100104 100100105 100100106 100100107 100100108 100100109 Assignments 75.0 70.0 100.0 Midterm Final Exam 54.25 51.5 92.5 68.75 Final Mark Letter Grade 68.0 69.25 97.0 88.5 74.75 56.0 66.5 47.0 32.5 77.0 60.525 95.35 78.925 85.0 70.0 55.0 62.5 1.75 50.5 27.75 74.25 65.05 4.825 50.35 31.625 76.725 82.5 Figure 1: The running application, showing the marks table Minimum 80 70 60 50 0) Maximum 100 79 69 59 49 Lab 05 Solutions SID 100100100 100100101 100100102 100100103 100100104 100100105 100100106 100100107 100100108 100100109 Assignments 75.0 70.0 100.0 Midterm Final Exam 54.25 51.5 92.5 68.75 Final Mark Letter Grade 68.0 69.25 97.0 88.5 74.75 56.0 66.5 47.0 32.5 77.0 60.525 95.35 78.925 85.0 70.0 55.0 62.5 1.75 50.5 27.75 74.25 65.05 4.825 50.35 31.625 76.725 82.5 Figure 1: The running application, showing the marks table

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions