Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program 19 60 points -GROUP PROJECT AVAILABLE Due May 1st 11:59 PM INTRODUCTION From h wikipedia.org/wiki/Sudoku: Sudoku (Japanese: sudoku), sometimes spelled Su Doku, is a

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Program 19 60 points -GROUP PROJECT AVAILABLE Due May 1st 11:59 PM INTRODUCTION From h wikipedia.org/wiki/Sudoku: "Sudoku (Japanese: sudoku), sometimes spelled Su Doku, is a logic-based placement puzzle, also known as Number Place in the United States. The aim of the canonical puzzle is to enter a numerical digit from 1 through 9 in each cell of a 9x9 grid made up of 3x3 subgrids (called "regions"), starting with various digits given in some cells (the "givens"). Each row, column, and region must contain only one instance of each numeral. For this assignment, you are going to write a Sudoku validator for 4x4 grids made up of 2x2 regions instead of 9x9 grids made up of 3x3 regions. Sudoku puzzles that use 4x4 grids only use the numerical digits 1 through 4 instead of 1 through 9 Here are two c 4x4 Sudoku grids: 4x4 Sudoku Example #1 4x4 Sudoku Example #2 Notice how each row, column and region has the individual numbers from 1 through 4 used only once. This means that the values used in each row. column and region must add up to 10 (1 2 3 4). This is how we will check our 4x4 Sudoku grids for this assignment. Allow your user to enter their Sudoku grids row-by-row, separating each of the four values by a space and hitting ENTER at the end of the row When the user has entered all 16 values into the program, you should output validation checks for each region, row and column. An example run can be seen below with sample user input underlined. Welcome to the Sudoku Checker v1.0! This program checks simple small 4x4 Sudoku grids for correctness. Each column, row and 2x2 region contains the numbers 1 through 4 only once To check your Sudoku, enter your board one row at a time, with each digit separated by a Hit ENTER at the end of a row space Enter Row 1. 3 2 4 1 Enter Row 2 4 1 3 2 Enter Row 3 1 4 2 3 Enter Row 4 2 3 1 4

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management An Organizational Perspective

Authors: Richard T. Watson

1st Edition

0471305340, 978-0471305347

More Books

Students also viewed these Databases questions

Question

=+ Why do we have markets and, according to economists,

Answered: 1 week ago