(b) Complete the following C++ function (by filling in the blanks) which receives a pointer to an integer as an argument along with an integer which specifies a column number. The function determines...


(b) Complete the following C++ function (by filling in the blanks) which receives a pointer to an<br>integer as an argument along with an integer which specifies a column number. The function<br>determines whether the particular column satisifies the conditions for

Extracted text: (b) Complete the following C++ function (by filling in the blanks) which receives a pointer to an integer as an argument along with an integer which specifies a column number. The function determines whether the particular column satisifies the conditions for "Sudokuness" and returns a Boolcan value accordingly. The pointer argument is used by the function to access a particular element of the array using the two-dimensional array translation formula (instead of the stan- dard array (row] [col] index notation employed in part (a)). The pointer argument will con- tain the address of the first element of the 9x9 two-dimensional array whose specified column is to be checked to see if it satisfies "Sudokuness". bool check_col (int* a, int which_col) bool all_found - true; bool number_found ; for (int number - i number <- number_found="" -="" for="" (int="" row="" -0="" ;="" row="">< 9="" ;="" row++)="" if="" (="" number="" --="" {="" number_found="" -="" :="" we="" found="" the="" number,="" so="" stop="" searching="" for="" it="" if="" all="" the="" numbers="" are="" found="" in="" the="" col="" all_found="" will="" be="" true,="" otherwise="" it="" will="" be="" set="" to="" false="" all_found="" if="" (="" false="" --="" number_found="" )="" {="" cout="">< "the="" missing="" number="" in="" this="" col="" -="" -="">< number="" ;="" }="" do="" this="" for="" all="" the="" numbers="" from="" 1="" to="" 9="">

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here