Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This tool is provided by a third party. Though your activity may be recorded, a page refresh may be needed to fill the banner CHALLENGE
This tool is provided by a third party. Though your activity may be recorded, a page refresh may be needed to fill the banner CHALLENGE CFIVEN 14.6.1: Life expectancy table Life expectancy table For each of the forty largest countries in the world (according to 1990 population figures), the data is given for the country's life expectancy at birth, number of people per television set, and number of people per physician. The data is stored a table tvPLE in the mat file Television_Physician_and Life_Expectancy Write a script that has two subfunctions: 1) findMinimumRecord that finds the minimum life expectancy in the dataset and extracts the accompanying record, and 2) ExtractRecordBasedOnCountry to find and extract the record given the name of a country. The main script should call the two functions, as indictated in the template. The countries in the table are Argentina' Bangladesh Brazil' Canada China "Colombia "Egypt' Ethiopia France Germany India' Indonesia" Iran Italy' Japan 'Kenya Korea, North' Korea, South Mexico MoroccO "Myanmar (Burma). Pakistan' Peru 'Philippines Poland Romania Russia South Africa 'Spain Sudan Taiwan Tanzania' Thailand' Turkey 'Ukraine 'United Kingdom 'United States Venezuela Vietnam Zaire X. load Television_Physician_and_Life_Expectancy record ExtractRecordBasedonCountry(tvPLE, 'South Africa') record- 1x6 table Country Life_expct Pple_per_telev Pple_per_phys Female_1f_expct Male_1f_expct South Africa 64 1340 67 61 This tool is provided by a third party. Though your activity may be recorded, a page refresh may be needed to fill the banner CHALLENGE CFIVEN 14.6.1: Life expectancy table Life expectancy table For each of the forty largest countries in the world (according to 1990 population figures), the data is given for the country's life expectancy at birth, number of people per television set, and number of people per physician. The data is stored a table tvPLE in the mat file Television_Physician_and Life_Expectancy Write a script that has two subfunctions: 1) findMinimumRecord that finds the minimum life expectancy in the dataset and extracts the accompanying record, and 2) ExtractRecordBasedOnCountry to find and extract the record given the name of a country. The main script should call the two functions, as indictated in the template. The countries in the table are Argentina' Bangladesh Brazil' Canada China "Colombia "Egypt' Ethiopia France Germany India' Indonesia" Iran Italy' Japan 'Kenya Korea, North' Korea, South Mexico MoroccO "Myanmar (Burma). Pakistan' Peru 'Philippines Poland Romania Russia South Africa 'Spain Sudan Taiwan Tanzania' Thailand' Turkey 'Ukraine 'United Kingdom 'United States Venezuela Vietnam Zaire X. load Television_Physician_and_Life_Expectancy record ExtractRecordBasedonCountry(tvPLE, 'South Africa') record- 1x6 table Country Life_expct Pple_per_telev Pple_per_phys Female_1f_expct Male_1f_expct South Africa 64 1340 67 61
Step 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