Question: Write a C++ program having three functions (1) the first function named funA. It has no parameters and return a double value. The funA will

Write a C++ program having three functions (1) the first function named funA. It has no parameters and return a double value. The funA will do the following operations: - It defines an integer array. That is, each element of this array is an integer. - Then calculate the average of the integer array and return the average value. (2) the second function named funB. It has no parameters and returns nothing. The funB will do the following operations: - It defines a string array. That is, each element of this array is a string. - Then, it will print the length of the string array. That is, the number of elements this string array has. (3) the third function is the main function of this program. It will call funA and funB.

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!