Question: This program should be in C++, if you could separate the different file types like headers and other C++ programs into their own steps that

This program should be in C++, if you could separate the different file types like headers and other C++ programs into their own steps that would help out a lotThis program should be in C++, if you could separate the differentfile types like headers and other C++ programs into their own steps

Using Microsoft Visual Studio, write a program that includes a class called Sudoku for generating and solving Sudoku puzzles. The class should contain the following public member functions: - Sudoku: s Sudoku (int n ) - Populates n squares of the 99 matrix with legal values - int Sudoku: :solve () - Produces a valid solution to the generated puzzle (returns 1 on success, 0 on failure) - void Sudoku: :printGrid() - Prints the 99 grid The program should begin by asking for an initial number of squares to randomly (and legally) populate. The initialized grid should then be printed, using * for undetermined values. The program then tries to find a solution. If a valid solution is found, the solution is then printed to the screen. Otherwise, the message "Sorry, unsolvable" is printed. Submit a .zip file to Canvas that contains three files: main.cpp, sudoku.cpp, and sudoku.h. An example of a main.cpp file looks like this: Examples

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!