Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is matlab Write a code (script file) that analyzes refugee data provided in the table below (from 2017). Steps: a) Calculate the total refugees

This is matlabimage text in transcribedimage text in transcribed

Write a code (script file) that analyzes refugee data provided in the table below (from 2017). Steps: a) Calculate the total refugees per country by adding Refugee Refugee the last two columns in the table (which are stored Countries Population population population in arrays below). by country by country b) Calculate which country has the maximum of origin of asylum number of refugees (based on above). -) Calculate the percentage of the total population USA | 318907401 4832 273202 that is made up of refugees (using the calculation Somalia 10517569 1123052 8081 in (a) divided by the population) for each country. 1) Find all the countries that have greater than 10% Syria 18772481 4872585 0 of the population classified as refugees. Yemen 26183676 15896 | 267173 lly, print your results to the screen like this: The maximum number of total refugees is from . These countries have >10% of the population classified as refugees: ... To receive full credit for this problem, you must write your code in general, no hard coding. You must write the code using vectorization (no loops, no if statements). Without the print statements, your solution could be as short as 4-5 lines of code. countries=[ "USA", "Somalia", "Syria", "Yemen", ...] ; %country names pop=[318907401, 10517569, 18772481, 26183676, ...]; %population refugeel=[4832, 1123052, 4872585, 15896, ...]; $refugee population by origin refugee2=[273203, 8081, 0, 267173, ... ]; %refugee population by asylum %TO DO write your vectorized code here

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

discuss the process of issuing shares;

Answered: 1 week ago