Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write the code in C program and please refer to the input and output example below for what the program should look like. Write a
Write the code in C program and please refer to the input and output example below for what the program should look like.
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 nimbe r 3:I.5 Province number 4: 9.4 Province number 5:5. 3 Province number 6: 13.6 Provincenumber 7: 1.5 Province number 8: 8.2 Province number 9: 1.1 Province number 10: 4.1 Output: Average PopuTatlon In Canada = 5.66 mlT Ion Province number 6 has the highest population Highest population- 13.60 million Province number 9 has the lowest population Lowest population = 1.10 millionStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started