Question: C ONLY please, this question must be answered using an array for population of size 10. Question 2 (10 marks). Write a program that prompts

C ONLY please, this question must be answered using an array forC ONLY please, this question must be answered using an array for population of size 10.

Question 2 (10 marks). 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. Call your source code file Name the c file "lastnameFirstnameA2Q2.c". (Ritu's file would be called chaturvediRituA2Q2.c) 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 15 Province number 8: 8.2 Province number 9: 1.1 Province number 10: 4.1 Output: Average Popuation |n 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

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!