Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started