Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

} displayData(val); //call displayData function and transfer array val } // displayData // // task: This function displays all entered inputs // // data in:

image text in transcribed

image text in transcribedimage text in transcribed

} displayData(val); //call displayData function and transfer array val } // displayData // // task: This function displays all entered inputs // // data in: the array containing val // data returned: none void displayData (NewType array) { for (int row_pos = 0; row_pos #include using namespace std; const int NO_OF_ROWS = 2; const int NO_OF_COLS = 4; typedef float NewType [NO_OF_ROWS] [NO_OF_COLS]; //declares a new data type 1/which is a 2 dimensional array of floats NewType val; // defines val as a 2 dimensional array of NewType void getData(); //prototype of getData void displayData(NewType array); //prototype of displayData 1/6.3(a) prototype of calculate int main() { getData(); //call getData function and transfer nothing cout> val[row_pos][col_pos); } Practice 03: Two dimensional array Mark: 2. Does the program get the result as same as in instruction 1? If not, how it differs? (page 7) Answer: /3 Mark: (1) Provide C++ statement based on program description in 6.3 (a) and 6.3 (b) of Program 6.3. Answer: /4 (ii) Provide algorithm in flowchart and C++ statements for Question 6.3 (c). Mark: /4 (a) Algorithm in flowchart Answer: /4 (b) C++ fragment code

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Guide To Client Server Databases

Authors: Joe Salemi

2nd Edition

1562763105, 978-1562763107

More Books

Students also viewed these Databases questions

Question

=+derived from the assignment will balance the costs?

Answered: 1 week ago

Question

=+6 Who is the peer of the IA ?

Answered: 1 week ago