Question: C ONLY PLEASE Write a program that prompts the user to enter the population of ten provinces of Canada and stores them in an array
C ONLY PLEASE
Write a program that prompts the user to enter the population of ten provinces of Canada and stores them in an array called population of size 10. It then finds and prints the average population of all provinces in Canada. It also finds and displays the provinces with the highest and lowest population. Please follow the sample input / output for further clarification.
Sample Input:
Enter the population of 10 provinces of Canada (in million):
Province number 1: 4.6
Province number 2: 1.3
Province number 3: 7.5
Province number 4: 9.4
Province number 5: 5.3
Province number 6: 13.6
Province number 7: 1.5
Province number 8: 8.2
Province number 9: 1.1
Province number 10: 4.1
Output:
**************************************************
Average Population in Canada = 5.66 million
Province number 6 has the highest population
Highest population = 13.60 million
Province number 9 has the lowest population
Lowest population = 1.10 million
**************************************************
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
