Question: Hey I am looking for how to do this assignment in C. 2. More Assignment Specifics This program will read in a text file (redirected

Hey I am looking for how to do this assignment in C.

Hey I am looking for how to do this assignment in C.

2. More Assignment Specifics This program will read in a text file (redirected to stdin) containing values on a 9 x9 sudoku grid. The text file will have 9 printable characters on a line, each separated by a space with 9 such lines in the file. Each of these characters will represent a value on the sudoku grid at a particular position. There are 9 possible values that can be filled in at a particular position: the digits '1' through '9'. In addition an unsolved sudoku will have blank positions on the grid: in the file these will be represented by the ' (underscore) character Using the data from the file, the program will display the sudoku grid and determine whether or not the sudoku grid is valid. In order for a sudoku grid to be valid there are three rules: 1. 2. 3. 5 5 5 No particular digit value may occur more than once in any row No particular digit value may occur more than once in any column No particular digit value may occur more than once in any 3x3 subgrid 5 5 5 Unlike the digit values '1' through '9', there may be multiple blank positions ("_) in any row, column or 3x3 subgrid. For an unsolved sudoku containing any number of blank positions it is not necessary to evaluate whether the sudoku is solvable given the provided numbers, the program will only need to determine that every position with a number follows the three above rules to determine if the 9x9 grid is valid Finally, the program should be divided into functions. Using multiple functions instead of having the entire program in main() helps divide the program into more manageable parts and will also allow you to work on the program incrementally as well as facilitate the testing and debugging of any specific section of the program Additionally functions can reduce the duplication of code within a program. It is up to you how to organize the program (one function for input, another for calculations, etc.) but a good rule of thumb is that you should be able to see the entire code of any function in your program on the screen without scrolling

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!