Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

plese cann help me, i need fastt please sinclude wing namespace std; 1/a) write sursquare function prototype (2 marks) int main() t /*b) Declare 2D

image text in transcribed

image text in transcribed

plese cann help me, i need fastt please

sinclude wing namespace std; 1/a) write sursquare function prototype (2 marks) int main() t /*b) Declare 2D array type integer, 2 columns 3 ou names vai (1 mark)? 13 14 15 16 7c) Declare ID array type integer mased nun wat se declarater 6 with antial value 1,2,3,4,5,6 (2 marks)" 18 int 1/d) Copy all elements of array nun to val (1 mark) for (int 120 il/forrow 23 24 25 26 for (int 3 J) //for col 20 29 ) 7) Call function sumsquare, pass array val and display the returned value (2 marks) 39 40 41 42 43 1/sumsquare function definition double sumsquare(int A[][2], int x) { double sum = e, square; 44 45 46 47 1/f) Calculate total of square of all elements in array (5 marks) for (int i=0; ; i++) //forrow 48 for (int j=0; ; j++) { //for column 49 50 51 square = } 52 53 54 55 56 57 return sum

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

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago