Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Harry wrote some code of a 2D array to store all the sales he made. Write a function that returns the sum of all elements
Harry wrote some code of a 2D array to store all the sales he made. Write a function that returns the sum of all elements in a two-dimensional array. Declare and initialize every veriable that was passed to it.
int totalSales(const int numbers[QUARTER][SALES], int rows)
C++. Extra credit if you turn in a main with your own made up numbers.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started