Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A. Writa a statement that declares sales to be a pointer to a pointer of type do

ID: 3640819 • Letter: A

Question

A. Writa a statement that declares sales to be a pointer to a pointer of type double.
B. Writa a C++ code that dynamically creates a two-dimensional array of five rows and seven columns and sales contains the base address of that array.
C. Write a C++ code that inputs data from the standard input device into the array sales.
D. Write a C++ code that deallocates the memory space occupied by the two-dimensional aray to which sales points.

I do not entire code just the statements per line. please help ty.

Explanation / Answer

A. double **sales = &ptr B. double[][] arr = new double[5][7]; sales = arr C. Ifstream in; for(int i =0; i< 5; i++){ for(int j =0; j < 7; j++) in >> sales[i][j]; D. delete sales;
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote