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

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 using namespace std; void sumi(double "sum, int n){ //your codes } double sum2(int n){ //your codes } main() { double result; sum1(&result, 5); 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!