ITN 261: Gradebook – javaFX
Problem statement:
You are tasked with writing a program that will keep track of student grades and display them in a graphical program.
Requirements:
· Student information should be stored within a Student class object
· We must keep track of each students:
· Name – String
· GPA – double
· Id – int
· Standing – int
· 0 corresponds to freshman
· 1 corresponds to sophomore
· 2 corresponds to junior
· 3 corresponds to senior
Grading details:
· Correct usage of OOP concepts (80%)
· Correct class design and usage of class instances (30%)
· Correct usage of javaFX objects and classes (30%)
· Other supporting code/logic (20%)
· Program runs/correct results (10%)
· Formatting/Indentation (10%)
Starter Code:
import java.util.ArrayList;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.scene.text.Text;
import javafx.stage.Stage;
public class Gradebook extends Application {
static ArrayList<Student> roster = new ArrayList<>();
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage) throws Exception {
// TODO: Make the necessary changes to display the class
// roster using a JavaFX window rather then the console.
roster.add(new Student(“John”, 3.5, 700000001, 0));
roster.add(new Student(“Jane”, 3.2, 700000011, 0));
roster.add(new Student(“Mike”, 3.9, 700000012, 1));
roster.add(new Student(“Mary”, 4.0, 700000013, 2));
roster.add(new Student(“Joseph”, 3.1, 700000002, 3));
for (Student each: roster) {
System.out.println(each);
}
}
}
Sample output:
Gradebook name = John, gpa = 3.5, id = 700000001, class = Freshman name = Jane, gpa = 3.2, id = 700000011, class = Freshman name = Mike, gpa = 3.9, id = 700000012, class = Sophomore name = Mary, gpa = 4.0, id = 700000013, class = Junior name = Joseph, gpa = 3.1, id = 70000002, class = Senior
Choose an academic level, add pages, and the paper type you want.
To reduce the cost of our essay writing services, select the lengthier deadline.
We can't believe we just said that to you.
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.
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 moreEach 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 moreThanks 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 moreYour 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 moreBy 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
Recent Comments