Question Details

(Solved) import import import import import import javafx.application.Application; javafx.scene.Scene; javafx.scene.layout.Pane; javafx.scene.paint.Color;...


programming assignment 1:

Write a program that displays a tic-tac-toe board, as shown below.

A cell may be X, O, or empty. What to display at each cell is randomly decided. The X and O are images in the files x.gif and o.gif. The Content area of the course will have the x an o gif image needed for this assignment

Tip: For creating your Images, the path can be relative, so for example if you have in your project a folder called image ( same level as src ), and in that folder are the two gif icons, you could create and load doing the following:
// load the images. This is image folder at project root

Image symbolX = new Image("file:/../image/x.gif");

Image symbolO = new Image("file:/../image/o.gif");
// this would be in a loop loading one of nine row/col of a GridPane

case 0: Gpane.add(new ImageView(symbolX), x, y);

programming assignmnet 2:

Write a program that displays a drawing for the popular hangman game, as shown below. This is NOT to be a functional game, just an exercise to use the various Shapes discussed in this modules reading.

Line, Circles, arcs are all that are required to be used to draw to the Pane/Scene

import
import
import
import
import
import javafx.application.Application;
javafx.scene.Scene;
javafx.scene.layout.Pane;
javafx.scene.paint.Color;
javafx.stage.Stage;
javafx.scene.shape.Circle; public class CircleSample extends Application {
public void start(Stage primaryStage) {
// Create a pane to hold the circle
Pane pane = new Pane();
// Create a circle and set its properties
Circle circle = new Circle();
circle.centerXProperty().bind(pane.widthProperty().divide(2));
circle.centerYProperty().bind(pane.heightProperty().divide(2));
circle.setRadius(50);
circle.setStroke(Color.BLACK);
circle.setFill(Color.WHITE);
pane.getChildren().add(circle); // Add circle to the pane }
} // Create a scene and place it in the stage
Scene scene = new Scene(pane, 200, 200);
primaryStage.setTitle("ShowCircleCentered"); // Set the stage title
primaryStage.setScene(scene); // Place the scene in the stage
primaryStage.show(); // Display the stage

 


Solution details:
STATUS
Answered
QUALITY
Approved
ANSWER RATING

This question was answered on: Sep 05, 2019

PRICE: $18

Solution~000200040854.zip (25.37 KB)

Buy this answer for only: $18

This attachment is locked

We have a ready expert answer for this paper which you can use for in-depth understanding, research editing or paraphrasing. You can buy it or order for a fresh, original and plagiarism-free solution (Deadline assured. Flexible pricing. TurnItIn Report provided)

Pay using PayPal (No PayPal account Required) or your credit card . All your purchases are securely protected by .
SiteLock

About this Question

STATUS

Answered

QUALITY

Approved

DATE ANSWERED

Sep 05, 2019

EXPERT

Tutor

ANSWER RATING

GET INSTANT HELP/h4>

We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.

You can also use these solutions:

  • As a reference for in-depth understanding of the subject.
  • As a source of ideas / reasoning for your own research (if properly referenced)
  • For editing and paraphrasing (check your institution's definition of plagiarism and recommended paraphrase).
This we believe is a better way of understanding a problem and makes use of the efficiency of time of the student.

NEW ASSIGNMENT HELP?

Order New Solution. Quick Turnaround

Click on the button below in order to Order for a New, Original and High-Quality Essay Solutions. New orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.

WE GUARANTEE, THAT YOUR PAPER WILL BE WRITTEN FROM SCRATCH AND WITHIN YOUR SET DEADLINE.

Order Now