Problem 1:
Write a C++ program that will create two arrays A[15] and B[25]. The program will fill each
array with random numbers between 11 and 99. Then will use the following functions:
MAX : that will find maximum number in any array.
MIN: that will find the minimum number in any array
AV: will find the average of any array.
Finally, your program will compare between the MAX of arrays A and B, the MIN of arrays A
and B, the average of array A and B, and compute the average of both arrays.
Problem 2:
Use the two arrays A[20] and B[35] that you created in problem 1 and write a program that
prompts the user for a number in the range [11, 99].
If the number exists in A but not in B the program will print “Good for A—try again” and the
user will be given the chance to try another number.
If the number exists in B but not in A the program will print “Good for B—try again” and the
user will be given the chance to try another number.
If the number exists in both A and B the program will print “Winner” and ends.
If the number does not exist in A or B the program will print “Loser” and ends.