DESCRIPTION

In this assignment you must write a C program to check the validity of a Sudoku solution. Follow the link to know more about Sudoku: https://www.bigfishgames.com/blog/how-to-solve-sudoku-puzzles-quickly-and- reliably/

You must at least do the following:

1- Ask the user to provide a minimum of first two rows of the Sudoku grid. For the rest of the entries, you should use random number generator.

2- Use appropriate logic to make sure random number generator generates distinct set of valid integers!

3- It should be a console-based, yet convenient and intuitive user interface to get first two rows of the grid from the user. Use data validation to ensure user enters exactly nine integers without entering an invalid data, for example, non-numeric values or integers less than 1 or greater than 9.

4- You should use multi-dimensional array to represent the grid.

5- Once the grid is fully populated, display the grid in a 9 x 9 matrix format, followed by your decision of whether it forms a valid Sudoku solution or not.

6- As a test case, your code should prove that the following is a valid Sudoku solution.

Figure: see image.

Sample User Interaction: see image.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.