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
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