1. Overview The purpose of this assignment is to give you some experience using arrays and functions in addition to loops & conditionals, as well as printf & scanf, declaring variables, and using...


Hello! Can you do this assignment in C language?


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

Extracted text: 1. Overview The purpose of this assignment is to give you some experience using arrays and functions in addition to loops & conditionals, as well as printf & scanf, declaring variables, and using logical expressions. 2. More Assignment Specifics This program will read in a text file (redirected to stdin) containing values on a 9 x 9 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. No particular digit value may occur more than once in any row 2. No particular digit value may occur more than once in any column 3. No particular digit value may occur more than once in any 3x3 subgrid 5 333 333 33 3 333 3 33 |555 555555555 |555 | 1 1 1 1 11 1 1 1|1|1|1|1 1 1| 3. 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. 3. Note about input redirection To redirect stdin to read from a file (for example "inputFile.txt") instead of reading whatever the user types in, run the program with the following command (assuming the program binary is named "main"): /main < inputfile.txt>
Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here