Situationism explains behavior as primarily caused by ______…
Questions
Situаtiоnism explаins behаviоr as primarily caused by __________ factоrs. [BLANK-1]
Instructiоns Nаme yоur IntelliJ prоject FinаlExаm_YourName. Name your .java files as indicated by the question. Write a comment at the top of your .java files that includes the program name, the date, and your name. When you're ready to submit your work, zip your IntelliJ project folder. Upload the zipped IntelliJ project to the question in the exam. You are not permitted to receive assistance during the exam. You are not permitted to access other websites during the exam. You are not permitted to use artificial intelligence (AI) during the exam. You are not permitted to use generative AI, including in IntelliJ during the exam. You are permitted to use your programming assignments and in-class programming practices during the exam. Ensure you have your programming assignments and in-class programming practices on the computer prior to starting the exam. You are not permitted to use other resources during the exam. Mobile phones and other electronic devices need to be turned off / silenced and put away during the exam. You have 120 minutes in total to complete both parts of the final exam. The final exam must be completed in-person. Good luck! Import Shopping List You may find the following list of imports convenient. // Necessities import javafx.application.Application; import javafx.stage.Stage; import javafx.scene.Scene; // Panes import javafx.scene.layout.Pane; import javafx.scene.layout.StackPane; import javafx.scene.layout.BorderPane; import javafx.scene.layout.GridPane; import javafx.scene.layout.HBox; import javafx.scene.layout.VBox; // Shapes and Color import javafx.scene.paint.Color; import javafx.scene.shape.Circle; import javafx.scene.shape.Line; import javafx.scene.shape.Rectangle; import javafx.scene.shape.Ellipse; // Controls import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.control.TextField; import javafx.scene.control.CheckBox; import javafx.scene.control.RadioButton; import javafx.scene.control.ToggleGroup; // Event Handling import javafx.event.EventHandler; import javafx.event.ActionEvent; import javafx.scene.input.MouseEvent; import javafx.scene.input.MouseButton; import javafx.scene.input.KeyEvent; import javafx.scene.input.KeyCode; // Styling import javafx.geometry.Insets; import javafx.geometry.Pos; 1. Random Lines (50 points) Name: RandomLines.java Create a GUI program with JavaFX that has a text field to get an integer from the user and a button. When the user clicks the button, the program is to draw as many lines as the number in the text field. Each line should be a random color and have a random starting point and ending point. Here's a sample showing 10,000 lines having been drawn: 2. Compound Interest (50 points) Name: CompoundInterest.java Albert Einstein supposedly called compound interest the most powerful force in the universe. You'll be harnessing that power to complete the exam. A simplified formula for compound interest that assumes annual compounding is: A = P ( 1 + r ) n {"version":"1.1","math":"A = P(1 + r)^{n}"} Where, A is the accumulated value P is the principal (the amount of money started with) r is the interest rate n is the number of year. Create a GUI program with JavaFX that has controls for getting these three inputs from the user and a button for calculating the result. Put default values in the text fields of 1000.0 for the principal, 5.0 for the interest rate, and 10 for the number of years. Hint: Don’t forget to divide the interest rate, r, by 100! Here's a sample showing the default inputs and the result they produce: 3. (Bonus) Check Uncheck (25 points) Name: CheckUncheck.java Create a GUI program with JavaFX that has a label and a checkbox. When the checkbox is checked, change the label to say "Check" and when the checkbox is unchecked, change the label to say "Uncheck".