Question: please solve it with python this is the text If a province has more actual seats than the number of seats you calculated based on

 please solve it with python this is the text If aplease solve it with python
province has more actual seats than the number of seats you calculated
based on its population abou we'l call that province over-represerved. If itthis is the text

If a province has more actual seats than the number of seats you calculated based on its population abou we'l call that province over-represerved. If it has fewer actual seats than predicted seats, then it is unde represented Use array relational operators and logical Indexing to create three arrays for the names of the over-represented provinces . the expected seats of those provinces the actual seats of those provinces Then do the same thing for the under-represented provinces. Finally, print your results to the console. You can use loops for this final task, Sample Run The output of your program might look something like this Based on population, the following provinces are over representada Expected KURIE Expected Actual 1 pected to itali 1 Expected 12 Actes 14 Prince Edward Island Expected 1 Act 4 Tetoda Expected 5 Actul 7 thest tattori Kupected Expected Expected 7 10 The following price under pressed A1 ated 35 What to Hand In A document entitled pay containing your finished programas described above Evaluation 3 mare fording the destiinta numy arrays marks for creating the way with the predicted number of op 4 marks for creating the foot and understad prouincenaloops - mator correct con Strometne MacBook Nadaxw252.98.1 Alberta, 4957889,34 Saskatchewan, 1898800, 14 Yukon, 35889,1 Manitoba, 1278889, 14 British Columbia, 4648098, 42 Ontario, 13448000, 121 Quebec,8164000, 78 Prince Edward Island, 142080, 4 Newfoundland, 519000,7 2 Northwest Territories, 41200, 1 Nova Scotia, 923000, 11 New Brunswick, 747000, 10 AB

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!