Question: please help me fix my code. it's right expect I'm not sure if I followed the instructions correctly. please help! 1. Compare output 212 Input

please help me fix my code. it's right expect I'm not sure if I followed the instructions correctly. please help!

please help me fix my code. it's right expect I'm not sure

if I followed the instructions correctly. please help! 1. Compare output 212

Input 1 2 3 4 5 6 7 Your output The sum

1. Compare output 212 Input 1 2 3 4 5 6 7 Your output The sum of elements in the array is 28 The product of elements in the array is 5040 2 Unit test 04 Testing -> sumOfElements(set, ARRAY_SIZE) Compilation failed main.cpp: In function 'bool test Passed(std::ofstream) : main.cpp:60:12: error: 'sumofElements' was not declared in this scope; 601 int sum sumofElements (set, ARRAY SIZE); Compilation failed sumofElements 3 Unit test 04 Testing producto fElements/set, ARRAY_SIZE) compilation failed d (std::ofstream&)': ients' was not declared in this scope; did you mean 'productofElements'? nts (set, ARPAY SIZE) Compilation failed 5 // Function prototypes #include 7 using namespace std; 8 9 // function declaration 10 int sumofElements(int array[], int size) 11 { 12 int total = 0; 13 for(int i = 0; i >val; 38 39 int sum = sumofElements (set, ARRAY_SIZE); // calling above sumofElements function int product = productofElements(set, ARRAY_SIZE);// calling above the productofElements function //Display the results 43 std::cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!