Question: C++ help Write a program that will calculate and display the age of the oldest player on a hockey team. Ask the user to enter
C++ help
Write a program that will calculate and display the age of the oldest player on a hockey team. Ask the user to enter the amount of players on the team to determine the array size. Then, ask the user to enter the ages of each of the players, and place them in an integer array.
SAMPLE RUN:
Enter the number of players on the hockey team: 5 Enter age of hockey player #1: 23 Enter age of hockey player #2: 56 Enter age of hockey player #3: 54 Enter age of hockey player #4: 23 Enter age of hockey player #5: 15 Age of the oldest player: 56
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
