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

Info icon This 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.
Image of page 1

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern