Computer Networking: A Top-Down Approach (7th Edition)
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
Bartleby Related Questions Icon

Related questions

Question

Trying to write a bash script off of a CSV file. The script will be given a single argument. If the argument is a year, the program should report the country with the highest incidence and the corresponding incidence value for that year. On the other hand, if the argument is a country, the program should report the year with the highest incidence and the corresponding incidence value.

For example if

./script.sh Afghanistan is given the output will show that the year 2018 had the highest births with a skilled personnel at 58.8%

or if

./script.sh 2018 is given the output will show that the country Albania had the highest births with a skilled personnel at 99.8%

 

 

The CSV file looks as follows

Afghanistan 2018 Births attended by skilled health personnel (%) 58.8
Afghanistan 2017 Births attended by skilled health personnel (%) 53.4
Afghanistan 2015 Births attended by skilled health personnel (%) 50.5
Afghanistan 2014 Births attended by skilled health personnel (%) 45.2
Afghanistan 2012 Births attended by skilled health personnel (%) 39.9
Afghanistan 2011 Births attended by skilled health personnel (%) 38.6
Afghanistan 2010 Births attended by skilled health personnel (%) 34.3
Afghanistan 2003 Births attended by skilled health personnel (%) 14.3
Albania 2018 Births attended by skilled health personnel (%) 99.8
Albania 2009 Births attended by skilled health personnel (%) 99.3
Albania 2005 Births attended by skilled health personnel (%) 99.8
Algeria 2013 Births attended by skilled health personnel (%) 96.6
Algeria 2006 Births attended by skilled health personnel (%) 95.2
Andorra 2017 Births attended by skilled health personnel (%) 100
Andorra 2016 Births attended by skilled health personnel (%) 100
Andorra 2015 Births attended by skilled health personnel (%) 100
Angola 2016 Births attended by skilled health personnel (%) 46.6
Angola 2007 Births attended by skilled health personnel (%) 47.3

 

 

Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON
Text book image
Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
Text book image
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning
Text book image
Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Text book image
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Text book image
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY