You can look at the Java programs in the text book to see how comments are added to programs. Minimal Submitted Files You are required, but not limited, to turn in the following source files: Assignment6.java (No need to modify) Movie.java (No need to modify, modified version from the assignment 4) Review.java (No need to modify) CreatePane.java – to be completed ReviewPane.java – to be completed You might need to add more methods than the specified ones. Skills to be Applied: JavaFX, ArrayList Classes may be needed: Button, TextField, TextArea, Label, RadioButton, ListView, and ActionHandler. You may use other classes. Here is the Assignmnet6.java: import javafx.application.Application; import javafx.stage.Stage; import javafx.scene.Scene; import javafx.scene.control.Tab; import javafx.scene.control.TabPane; import javafx.scene.layout.StackPane; import java.util.ArrayList; public class Assignment6 extends Application { private TabPane tabPane; private CreatePane createPane; private ReviewPane reviewPane; private ArrayList movieList; public void start(Stage stage) { StackPane root = new StackPane(); //movieList to be used in both createPane & reviewPane movieList = new ArrayList(); reviewPane = new ReviewPane(movieList); createPane = new CreatePane(movieList, reviewPane); tabPane = new TabPane(); Tab tab1 = new Tab(); tab1.setText(“Movie Creation”); tab1.setContent(createPane); Tab tab2 = new Tab(); tab2.setText(“Movie Review”); tab2.setContent(reviewPane); tabPane.getSelectionModel().select(0); tabPane.getTabs().addAll(tab1, tab2); root.getChildren().add(tabPane); Scene scene = new Scene(root, 700, 400); stage.setTitle(“Movie Review Apps”); stage.setScene(scene); stage.show(); } public static void main(String[] args) { launch(args); } } Here is Movie.java: public class Movie { private String movieTitle; private int year; private int length; private Review bookReview; //Constructor to initialize all member variables public Movie() { movieTitle = “?”; length = 0; year = 0; bookReview = new Review(); } //Accessor methods public String getMovieTitle() { return movieTitle; } public int getLength() { return length; } public int getYear() { return year; } public Review getReview() { return bookReview; } //Mutator methods public void setMovieTitle(String aTitle) { movieTitle = aTitle; } public void setLength(int aLength) { length = aLength; } public void setYear(int aYear) { year = aYear; } public void addRating(double rate) { bookReview.updateRating(rate); } //toString() method returns a string containg the information on the movie public String toString() { String result = “nMovie Title:tt” + movieTitle + “nMovie Length:tt” + length + “nMovie Year:tt” + year + “n” + bookReview.toString() + “nn”; return result; } } Here is Review.java: import java.text.DecimalFormat; public class Review { private int numberOfReviews; private double sumOfRatings; private double average; //Constructor to initialize all member variables public Review() { numberOfReviews = 0; sumOfRatings = 0.0; average = 0.0; } //It updates the number of REviews and avarage based on the //an additional rating specified by its parameter public void updateRating(double rating) { numberOfReviews++; sumOfRatings += rating; if (numberOfReviews > 0) { average = sumOfRatings/numberOfReviews; } else average = 0.0; } //toString() method returns a string containg its review average //and te number of Reviews public String toString() { DecimalFormat fmt = new DecimalFormat(“0.00”); String result = “Reviews:t” + fmt.format(average) + “(” + numberOfReviews + “)”; return result; } } Here is CreatePane.java: import java.util.ArrayList; import javafx.scene.layout.HBox; //import all other necessary javafx classes here //—- public class CreatePane extends HBox { private ArrayList movieList; //The relationship between CreatePane and ReviewPane is Aggregation private ReviewPane reviewPane; //constructor public CreatePane(ArrayList li…

Looking for solution of this Assignment?

WHY CHOOSE US?

We deliver quality original papers

Our experts write quality original papers using academic databases.We dont use AI in our work. We refund your money if AI is detected  

Free revisions

We offer our clients multiple free revisions just to ensure you get what you want.

Discounted prices

All our prices are discounted which makes it affordable to you. Use code FIRST15 to get your discount

100% originality

We deliver papers that are written from scratch to deliver 100% originality. Our papers are free from plagiarism and NO similarity.We have ZERO TOLERANCE TO USE OF AI

On-time delivery

We will deliver your paper on time even on short notice or  short deadline, overnight essay or even an urgent essay