Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using c++ write the code necessary to make the Sudoku appear on the screen and to allow some simple interactions. Requirements You are to create

using c++

write the code necessary to make the Sudoku appear on the screen and to allow some simple interactions.

Requirements

You are to create a program that performs six operations:

Read: Read a board from a file into our board[][] array.

Write: Write the board[] array back to a file.

'D' Option: Display the contents of the board[][] array on the screen.

'E' Option: Edit a square with no verification that it is correct or valid.

'Q' Option: Exit the interaction loop and launches the Write code.

'?' Option: Displays the instructions on the screen.

Example

The following is a sample run of the program:

Where is your board located? prj4.txt Options: ? Show these instructions D Display the board E Edit one square S Show the possible values for a square Q Save and Quit A B C D E F G H I 1 7 2 3| |1 5 9 2 6 |3 2| 8 3 8 | 1 | 2 -----+-----+----- 4 7 |6 5 4| 2 5 4|2 7|3 6 5 |9 3 1| 4 -----+-----+----- 7 5 | 7 | 3 8 4 |1 3| 6 9 9 3 2| |7 1 4 > E What are the coordinates of the square: e5 What is the value at 'E5': 8 > q What file would you like to write your board to: deleteMe.txt 

Please note that on the Options, there are exactly three spaces at the front of each line.

Process

Perhaps the easiest way to do this is in a four-step process:

Create the framework for the program using stub functions based on the structure chart from your design document.

Write each function. Test them individually before "hooking them up" to the rest of the program.

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

Oracle Databases On The Web Learn To Create Web Pages That Interface With Database Engines

Authors: Robert Papaj, Donald Burleson

11th Edition

1576100995, 978-1576100998

More Books

Students also viewed these Databases questions