Assignment 1java tic-tac-toe game assignment 1 is

Assignment Help JAVA Programming
Reference no: EM13376960

Assignment 1(Java): Tic-Tac-Toe Game (Assignment 1 is attached)

Attachment:- Tic Tac Toe game.docx
This assignment consists of two (2) sections: 

  • a Java program file
  • a screen shot of the output and a description of your Java program

Use the concepts and scenario from Assignment 1 and continue with the tic-tac-toe game design and development.
Section 1: Java Program File
Improve your Java program from Assignment 1. According to your design, the program must:

  • Use 2D graphics, instead of text, to display the Xs and Os in the grids of the square- shaped buttons.
  • Use either decision logic or recursion in order to determine whether or not a player wins the game. That is, every time the player draws an X or O on the board, the program checks all possible combinations in order to see if the player wins the game. Note:There are a total of eight (8) possibilities to win the game. Your program should check each possibility for the player. The eight (8) possibilities are:

          - 3 across in the first row
          - 3 across in the second row
          - 3 across in the third row
          - 3 vertical in the first column
          - 3 vertical in the second column
          - 3 vertical in the third column
          - 3 diagonal like a backslash
          - 3 diagonal like a forward slash

  • Display a message which announces whether or not the player has won the game.
  • Include a sound effect that plays to declare a winner.
  • Reset the game once the player has won.

Section 2: Screen Shot of the Output and Description of Your Java Program
Create a screen shot of the output and include a description about your Java program.

  • Create a screen shot which shows the output of your Java program.  
  • Include a one (1) page description of your program. Note: Use MS Word for your program description, and place the screen shot of the output from your Java program into the Word file as an attached image.
  • Include a one (1) to three (3) paragraph pseudocode that illustrates the way in which you use either decision logic or recursion in order to determine whether or not the player wins the game.

 
Assignment 2: (Java) 
The following method, numPaths, is supposed to count the number of paths,

but it has some problems. Debug the method.

 
int numPaths(int row, int col, int n)

{

if (row == n)

return 1;

else

if (col == n)

return (numPaths + 1);

else

return (numPaths(row + 1, col) * numPaths(row, col + 1))

}
 
 
Assignment 3 (PL/SQL): 

Write a PL/SQL block to achieve the following:

Find out the average salary in the Employees table.

Then check the salary of each employee in the Employees table. If the salary of an employee is less than the Average Salary in the entire table, increase the salary of that employee by 10%.  If the Salary of an employee is greater than the Average salary in the Employees table, then decrease the salary of that employee by 15%.

Provide complete code of your PL/SQL block using all relevant PL/SQL sections.

Note: All assignment need screen shot.

 

Reference no: EM13376960

Questions Cloud

The instructions concerning this assignment as well as the : the instructions concerning this assignment as well as the grading rubric are reproduced below. in 2009 the american
How will you influence people to strive willingly for group : how will you influence people to strive willingly for group objectives in your organization target based industry?apply
There are two connected spur gears attached to a fixed : there are two connected spur gears attached to a fixed board at points a and b. the assumptions of the system are that
Lesson 2 production possibilities - written assignment : lesson 2 production possibilities - written assignment 2nbsp1.nbspnbspnbspnbspnbspnbspnbspnbsp suppose that a nations
Assignment 1java tic-tac-toe game assignment 1 is : assignment 1java tic-tac-toe game assignment 1 is attachedattachment-nbsptic tac toe game.docxthis assignment consists
Sola systemssola systems a company focussed on clean energy : sola systemssola systems a company focussed on clean energy products assembles and sells two types of solar panels
Just 4 kidsbill travis owns two just 4 kids stores in : just 4 kidsbill travis owns two just 4 kids stores in florence south carolina.nbsp he believes that the stores have
Coffee makers incorporated cmitwo divisions of a cmi are : coffee makers incorporated cmi.two divisions of a cmi are involved in a dispute.nbsp division a purchases part 101 and
Choose an item that you would like to manufacture you do : choose an item that you would like to manufacture. you do not actually need to manufacture something but will proceed

Reviews

Write a Review

JAVA Programming Questions & Answers

  Data structures and algorithms

Code analysis and programming.

  Java application to generate three-digit random number

Write a Java application that generates a 3-digit random number 100 times. Display the output for each of the generated numbers and the sum of all 100 numbers.

  Write various bindings to determine semantics

Write the various bindings that are required to determine the semantics when statement is executed. For each binding, indicate binding time used for language. Describe your answer.

  Insert uml design diagrams, use case, classes

Insert UML design diagrams here (use case, class, and sequence diagram).

  String that contains at least five letters

Write an application that prompts the user for a String that contains at least five letters and at least five digits. Continuously reprompt the user until a valid String is entered. Display a message indicating whether the user was successful or did ..

  What is a nested inner class

What is a nested inner class? What special privileges does a nested inner class have? Give an example of how you declare a nested inner class

  Utilizes a good design process

Analyze, design, and document a simple program that utilizes a good design process and incorporates sequential, selection and repetitive programming statements as well as at least one function call and the use of at least one array.

  Write a program using bucket sort idea to create histograms

The input data are in an external file named election.txt. The first line is an integer N representing the number of candidates. The next N lines are the names of the canditates.

  Java script program for song

Construct a JavaScript program that declares and prints an array that includes at least twenty of your favorite songs.

  Implement a shopping cart class with user interface

project will be to implement a shopping cart class with user interface (UI) that contains main() in Net Beans. The UI class will be used to perform user input/output and to invoke the appropriate methods of shopping cart class. When your program star..

  Develop a java application

Your task is to develop a Java Application that allows the user to read travel booking data from a text file, save data in a file, display data in a text area, sort data by booking name and search data by booking name.

  What would be an incorrect way of writing this equation

Jim develops 5 Java applications a year. Joe develops 10 Java applications a year. Jim gets paid $5000.00 per application, but Joe gets paid $10000.00 per application.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd