Question: Window Help ( v ) C friendly - space - fishstick - 6 9 gwq 7 q 4 9 wv 4 h 5 qvx .

Window Help
(v)
C
friendly-space-fishstick-69gwq7q49wv4h5qvx.github.dev
(7)[Proviow] README.nd - shut-the-box--part-1-John-ramos96[Codespacess fritendly space fishstick
O shut-the-box---part-1-john-ramos96[Codespaces: friendly space fishstick]
Dreview]
README.md x C box.h
A method to return a string representation of the state of the box. For example, ff only tiles 3 and 7 are downfacing, this method should return the string "12*456*89".
For this assignment, build a header and implementation file pair for a class called Box that represents the box used in the game. Part 2 of this assignment will be to complete the game, which will incorporate the Dice class.
Also, write a main function that demonstrates that your Box class behaves as expected. A suggested approach to testing would be to use a loop in which the user is propmpted for three integers. With each input, attempt to close the files indicated, and report whether or not those tiles were successfully closed. Use zero as a tile number to close only one or two tiles. When calling your close method, this should be deemed successful only if the tile numbers are valid (where tile number O is ignored), all tile numbers given are tiles in the up position, and no two tile numbers given are the same (except, of course, for 0).
IOBLEMS OUTPUT DEBUGCONSOLE TERMMAL PORTS COMMENTS
john-ramos96* fworkspaces/shut-the-box-part-2-john-ranos96(main) $
0,20
Layout: U.S.
24
()
()
A
1
 Window Help (v) C friendly-space-fishstick-69gwq7q49wv4h5qvx.github.dev (7)[Proviow] README.nd - shut-the-box--part-1-John-ramos96[Codespacess fritendly space

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!