Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Jul 2017 |
Last Sign in: | 213 Weeks Ago, 3 Days Ago |
Questions Answered: | 15833 |
Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
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
----------- Â ----------- 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