Question: 1. Write a C++ program to ask a user for 7 integer numbers and store in an array. Then write a function that can return
1. Write a C++ program to ask a user for 7 integer numbers and store in an array. Then write a function that can return min and max values from this array. The prototype of this function is defined by: void findMaxMin(int number[], int *max, int *min); 2. Write a C++ program which calculates the sum of 1/12 + 1/22 +1/32 + ... +12, where n is a positive integer. The program has two functions which both calculate the sum above. The prototypes of these two functions are : void sum1(double *sum, int n); double sum2 (int n); Be careful with integer division. See a sample code on the right. #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
