Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask Java Expert


Home >> Java

You will be designing a simple Sudoku Game.  The rules of Sudoku can be found on web. The rules are describeed. 

The Data Element

      Integer, value 0 - 9

The Data Structure

A two-dimensional array of Integers.

The Data Manager

            A class that allows the user to start a new game, enter a value, and display all valid values for an entry in the puzzle.  The Data Manager will manipulate the Data Structure. Implement the SudokuBoardManagerInterface interface which has been provided for you.  The file for a new game is in the following format (0's are place holders and are not displayed):

8,0,0,3,0,9,0,0,5

0,0,0,0,2,0,0,0,0

5,0,0,6,0,8,0,0,3

0,7,5,9,0,3,4,6,0

0,0,1,0,0,0,7,0,0

0,3,8,7,0,4,2,5,0

6,0,0,4,0,1,0,0,2

0,0,0,0,9,0,0,0,0

3,0,0,5,0,7,0,0,4

The GUI

o   Display the Sudoku board.  You may use a two-dimensional array of JTextboxes (not enabled), etc.

o   Provide a way for the user to select a new game.  Use the FileChooser to ask the user to select the new game file.

o   Provide a way for the user to see all valid values for a particular entry (row,column) in the puzzle

o   Provide a way for the user enter a value for a particular entry (row, column) in the puzzle.

Exceptions

  • Provide an exception called InputOutOfRangeException if the user puts in an invalid value (1-9) for the row or column.
  • Provide an exception called ValueNotValidException if the user enters an invalid value for this entry (row,column), based on the rules of Sudoku.

Output exs


Attachment:- Assignment_Sudoku.docx

Java, Programming

  • Category:- Java
  • Reference No.:- M913802
  • Price:- $70

Priced at Now at $70, Verified Solution

Have any Question? 


Related Questions in Java

1 answer the following questions for each method or method

1) Answer the following questions for each method or method signature below. You may assume that these functions do not access or modify any memory not allocated within the function itself (i.e., global or class-level da ...

The requirement is to design a system using jsp in

The requirement is to design a system using jsp in netbeans. You need to add other functions such as search by text, advance search, quantity update by admin, quantity check at the checkout, login and registering page, a ...

Design your own java class that includes at least 3 data

Design your own Java Class that includes at least 3 data fields, 2 constructors and 4 methods. When designing your class, pick an object that you are familiar with and make it your own, realistic, yet simple design with ...

Create a script that presents a word-guessing game allow

Create a script that presents a word-guessing game. Allow users to guess the word one letter at a time by entering a character in a form. Start by assigning a secret word to a variable. After each guess, print the word u ...

Questions for java programing answer each question with at

QUESTIONS FOR JAVA PROGRAMING (answer each question with at least 5 sentences) 1. Discuss why it is necessary to use repetitive and selective statement. Use segment codes to demonstrate your understanding. Explain why yo ...

Write a java program non-gui preferred to demonstrate the

Write a Java program (non-GUI preferred) to demonstrate the use of an ArrayList. The program should allow a user to do the following: Add, edit, delete different types of animals Select an animal, and the corresponding c ...

Java programthis assignment will count as both homework and

Java Program This assignment will count as both homework and lab. Develop a program that will allow the user to display the starting line and the bench for a basketball team. The user will also have the option of swappin ...

Tennis score boardyou will write a gui that can be used to

Tennis Score Board You will write a GUI that can be used to keep track of the score during a lawn tennis match at Wimbledon. You will be using MVC (Model View Controller) so you will submit the Model and then the View an ...

1how does java support the concept of encapsulation2

1. How does Java support the concept of encapsulation? 2. Describe the difference between an object and a class. 3. What is the difference between the contents of a Java variable of a primitive type and a Java variable o ...

Java programmingscenario a mom and pop used car dealership

JAVA PROGRAMMING SCENARIO: A Mom and Pop used car dealership wants you to create a program that will manage their sales and inventory. They have provided a menu for you to follow. 1. Add To Inventory 2. Remove From Inven ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro