Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . The World Health Organization ( WHO ) compiles data about immunization levels around the world to support global health initiatives, including Sustainable Development

1. The World Health Organization (WHO) compiles data about immunization levels around the world to support global health initiatives, including Sustainable Development Goal 3(SDG 3): Good Health and Well-being. This goal emphasizes the importance of universal access to healthcare services, including vaccines. The file named measles.txt contains data on measles vaccination levels in various countries, contributing to the global effort to end the measles epidemic. Each line of the file contains the following fields, separated by a space:
Country (50 characters): Name of the country.
Income Level (6 characters): Category assigned by the World Bank, with possible values being WB_LI (low income), WB_LMI (lower middle income), WB_UMI (upper middle income), and WB_HI (high income).
Percent Vaccinated (3 characters): Percentage of the population vaccinated against measles from age one.
Region (25 characters): Region assigned to that country by WHO.
Year (4 characters): The year the data was collected.
2. You will develop two Python programs as described below to process and analyze this data, aiding in the assessment and advancement of SDG 3 by providing insights into global immunization trends. Each program will be in a separate source code file, as detailed under Assignment Deliverables.
3. Your programs may use any built-in or library functions.
3.1 Part A
1. The program in GCS182_PRJ_A.py will copy selected lines from measles.txt into a file selected by the user.
a) The program will always read from measles.txt(it will not prompt the user for the name of the input file). If it is unable to open that file, the program will stop.
b) The program will prompt the user for the name of the output file. If that file does not exist, the program will create it and continue. If that file already exists, the program will discard the current contents of the file and continue.
c) The program will prompt the user to enter a year and will copy all lines of measles.txt selected by the users response. A line is selected if the users response matches the Year field or any of its prefixes. All lines are selected if the users response is any of the values in the set {,all,ALL}. Note that is the empty string.
For example, a line whose Year field contains 1987 would be selected by any of the following user responses: {1,19,198,1987,,all,ALL}.
2. The output file created by the program will have the same format as the input file (same field widths and spacing). Note that when the user selects all lines, the output file will be identical to the input file.
3. The program will display appropriate messages to inform the user about any unusual circumstances.
3.2 Part B
1. The program in GCS182_PRJ_.py will display one summary report to the user.
a) The program will prompt the user to enter the name of the input file. If it is unable to open that file, the program will prompt the user again until the user enters a valid file name.
b) The program will prompt the user to enter a year and will then prompt the user to enter an income level. The income level must be one of the characters in the set {1,2,3,4}, where 1 corresponds to low income,2 corresponds to lower middle income,3 corresponds to upper middle income and 4 corresponds to high income.
c) The program will identify all records (lines) in the input file which match the users criteria for year and income level, and the program will display a report with the following information:
The count of records in the input file which match the users criteria
The average percentage for those records (displayed with one fractional digit)
The country with the lowest percentage for those records
The country with the highest percentage for those records
The name of the country and the percent of children vaccinated will be displayed for the last two items (lowest percentage and highest percentage).
2. The program will display appropriate messages to inform the user about any unusual circumstances.
3. The program will contain at least three functions.
4. SUBMISSION
A complete Report (including an introduction, a methodology explaining your work and how you solved the problems, screenshots of the codes and results, team management, timeline, and explanation of the individual tasks for each team member, a conclusion reflecting on the whole project.
The python scripts with the data files.

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 Marketing The New Profit Frontier

Authors: Ed Burnett

1st Edition

0964535629, 978-0964535626

More Books

Students also viewed these Databases questions

Question

Draw a labelled diagram of the Dicot stem.

Answered: 1 week ago