Write a back–end class called TUTTable and save it in a file called TUTTable.cpp. This class must have the following structure: Private Members Data Type Name Description TUTCell cTableData[ ][ ] This member will store the cells of the table. It must contain 30 rows and each row should be able to store 100 cells. int cNumberOfRows This member will store the number of rows that contain data. int cNumberOfColumns This member will store the number of columns that contain data. Public Methods Return Type Method Signature Description TUTTable() A constructor that must initialise the cNumberOfColumns and cNumberOfRows to zero. TUTTable(const TUTTable &refTable) A copy constructor that must copy the data from the received class to its data members. At the beginning of this method insert the following debug instruction: if (Debug::ACTIVE) {Debug::log("TUTTable","TUTTable","BEGIN of method");} At the end of this method insert the following debug instruction: if (Debug::ACTIVE) {Debug::log("TUTTable","TUTTable","END of method");} TUTTable(int numberOfColumns) A constructor that must initialise the cNumberOfColumns member to the received value. This constructor must also initialise cNumberOfRows to zero. int getNumberOfRows() int getNumberOfColumns() void addRow(TUTCell rowData[]) This method must copy the cells in the rowArray[] into the cTableData[ ][ ] array. At the beginning and end of this method insert similar debug instructions as those in the copy constructor. Also insert a debug instruction that will display the data content of each cell as it is added to the cTableDatap[][] array. TUTCell getCellAt(int row, int col) A constructor that must return the cell located at index position (row, col)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Write a back–end class called TUTTable and save it in a file called TUTTable.cpp. This class must have the following structure:
Private Members
Data Type Name Description
TUTCell cTableData[ ][ ] This member will store the cells of the table. It must contain 30 rows and each row should
be able to store 100 cells.
int cNumberOfRows This member will store the number of rows that contain data.
int cNumberOfColumns This member will store the number of columns that contain data.
Public Methods
Return Type Method Signature Description
TUTTable() A constructor that must initialise the cNumberOfColumns and
cNumberOfRows to zero.
TUTTable(const TUTTable &refTable) A copy constructor that must copy the data from the received class to its data
members.
At the beginning of this method insert the following debug instruction:
if (Debug::ACTIVE) {Debug::log("TUTTable","TUTTable","BEGIN of
method");}

At the end of this method insert the following debug instruction:
if (Debug::ACTIVE) {Debug::log("TUTTable","TUTTable","END of method");}
TUTTable(int numberOfColumns) A constructor that must initialise the cNumberOfColumns member to the
received value. This constructor must also initialise cNumberOfRows to zero.
int getNumberOfRows()
int getNumberOfColumns()
void addRow(TUTCell rowData[]) This method must copy the cells in the rowArray[] into the cTableData[ ][ ]
array.
At the beginning and end of this method insert similar debug instructions as
those in the copy constructor. Also insert a debug instruction that will display
the data content of each cell as it is added to the cTableDatap[][] array.
TUTCell getCellAt(int row, int col) A constructor that must return the cell located at index position (row, col)

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education