Question: I am having trouble with writing this code. I need to write a C++ program that uses a two dimensional array to display a table
I am having trouble with writing this code. I need to write a C++ program that uses a two dimensional array to display a table of probabilities for a pair of rolling dice. The values of each die are 4 up to and including 9. The top row of the table, left to right, and the left column of the array, top to bottom, must contain the values displayed on each of the die in ascending order. The table must show what the total sum value will be when the faces of each die are added together.
After the table is populated with all of the probabilities, the program displays the possible total sum values and how many times that total sum value appears in the table. Program displays a label identifying this section of information on the output screen.
The completed program displays the program name and the student name at the top of the screen. The output is formatted so that it is not displayed on the very first line and at the left margin of the run window. Finished table should be depicted as a table with the use of one character, repeated, so as to make horizontal and vertical lines so that the finished output table appears to be a grid.
The incorporation of ANY concepts not covered in Chapters 1 through 3 (Beginning C++ through game programming) is NOT ALLOWED. ANY concepts covered in Chapters 1 through 3 are allowed, with the exception of the use of switch case and enumerators, these are prohibited.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
