SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 213 Weeks Ago, 3 Days Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 12 Jan 2018 My Price 10.00

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

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 javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.layout.Pane;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    import 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
        }
       
    }

Answers

(5)
Status NEW Posted 12 Jan 2018 01:01 PM My Price 10.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)