Question: Make this program using C++ following this rubric: *Include comments in code* (10pts) Details explaining how your code works Program Specifications and Correctness / Test

Make this program using C++ following this rubric:

*Include comments in code* (10pts)

  • Details explaining how your code works

Program Specifications and Correctness / Test Cases:

  • Encapsulation and Abstraction Implemented
  • User can swap numbers
  • Number of moves are tracked and displayed
  • Game displays new board each after each move 
  • Game ends when all 15 
  • 15 15 15- in in 6 2 15 15 5 4 1 8 7 9 3 16 13 15 15 15 1  Move numbers by swapping positions.  Track number 

15 15 15- in in 6 2 15 15 5 4 1 8 7 9 3 16 13 15 15 15 1 Move numbers by swapping positions. Track number of moves needed to complete game. Row 1: Column 1: Row 2: Column 2: Row 3: Column 3: Diagonal Left: 9 Diagonal Right: 18 st 16 13 13 19 11 4 3 8 Enter a digit to move: 3 Enter a digit to swap with: 4 Board not Complete! 9 2 5 27 1 15 15 15 6 Sample Output: 4 DO WE Program should include the following: Implement encapsulation and abstraction, Documentation explaining how your program works. 3 8 Enter a digit to move: 6 Enter a digit to swap with: 4 Board Complete! 9 5 1 NEW 2 7 15 6 15 555 15 15 15 Row 1: Column 1: Row 2: Column 2: Row 3: Column 3: Diagonal Left: 15 Diagonal Right: 25 55555555 15 15 15 15 Number of noves: 16

Step by Step Solution

3.40 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The program consists of two files All15h and All15cpp All15h ifndef ALL15H define ALL15H class All15 private int board33 int moves public All15 void d... View full answer

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 Programming Questions!