260Fall06Ass1 - CMPS260 Fall 2006 Programming Project#1(150...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CMPS260 Fall 2006 Programming Project #1 (150 stuff) DUE DATES: Submission: Sunday Sept. 3 rd @10:00 pm. Folder: In lab Tuesday Sept. 5 th We need a program to tell us if answers to SUDOKU puzzles are correct or not. You will write a C++ program to process the data and print out the required results. A SUDOKU puzzle has nine rows and nine columns. The object of the puzzle is to fill in all the cells with the digits 1 through 9 so that each row contains the digits 1-9, each column contains the digits 1-9 and each 3 X 3 box (there are nine of them) contains the digits 1-9. The following example shows a valid SUDOKU solution: 5 7 9 8 6 2 1 4 3 1 2 8 3 5 4 7 9 6 6 4 3 1 7 9 5 8 2 8 6 1 9 3 7 4 2 5 3 9 4 5 2 8 6 1 7 2 5 7 6 4 1 8 3 9 9 8 6 2 1 5 3 7 4 4 3 2 7 8 6 9 5 1 7 1 5 4 9 3 2 6 8 The difficulty of the puzzle is governed by the starting configuration but that is irrelevant for this assignment. Your program will read in potential solutions from a data file and decide whether each solution is valid or not. PROCESSING: Read the first record in the file. Use this value to control a loop that processes each solution in the file. For each solution in the file:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/29/2011 for the course CMPS 260 taught by Professor Staff during the Spring '08 term at University of Louisiana at Lafayette.

Page1 / 3

260Fall06Ass1 - CMPS260 Fall 2006 Programming Project#1(150...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online