Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Sudoku problem PLEASE show 3 files!!!! main.cpp checker.h checker.cpp Implementation Details Sample Driver Code SudokuRowChecker SudokuRowChecker checker; checker.setData( 123456789 ); if (checker.isValid()) { cout

C++ Sudoku problem

PLEASE show 3 files!!!!

main.cpp

checker.h

checker.cpp

Implementation Details

Sample Driver Code

SudokuRowChecker

SudokuRowChecker checker; checker.setData( "123456789" ); if (checker.isValid()) { cout

SudokuRowChecker( ); void setData( char * s ); void setStringData( std::string s ); void clear(); bool isValid( ) const;

std::string sudokuRow;

Sample Output

looks good! looks bad! looks bad!

image text in transcribed

Background: The purpose of this assignment is to practice dealing with string data. The goal is to work with data declared as char and also as string. Somehow, I think you'll like working with string much better. Please recall that string is officially known as std::string Project 1: Sudoku Row Checker Sudoku is a logic-based number placement puzzle. The objective is to fill a 9x9 grid so that each column, each row, and each of the nine 3x3 boxes (also called blocks or regions) contains the digits from 1 to 9 only one time each. For those of you not familiar with this game, you can learn more about it by clicking here The Sudoku Row Checker class is can be used to validate a string of information. Using string operations, it should verify that each number 1 to 9 is used only one time. Following the class diagrams shown below, implement the Sudoku Row Checker class. Embed your class in a suitable test program that proves your calculations are correct. You may choose to create any number of additional methods, but you are required to implement all of the public methods shown below. You are free to ignore the private parts of the class I suggest below

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions

Question

1.what is dew ?

Answered: 1 week ago

Question

1.The difference between climate and weather?

Answered: 1 week ago

Question

1. What is Fog ?

Answered: 1 week ago

Question

How water vapour forms ?

Answered: 1 week ago

Question

What is Entrepreneur?

Answered: 1 week ago

Question

7. It is advisable to do favors for people whenever possible.

Answered: 1 week ago

Question

9. Power and politics can be destructive forces in organizations.

Answered: 1 week ago