no question for now
Microsoft Word - LA3_spec.docx Lab Assignment – 3 Due: Thursday 2/25, 11:59PM Topics: Input, Print, Variables, Sequence, Conditional Structure, While Loop Problem Statement: Determine eligibility for COVID-19 Vaccination for a number of individuals. Lab Scenario: In this assignment, you will design a simple program to determine if a number of individuals qualify for COVID-19 vaccination from the Health Department. The program should ask the user for the total number of individuals, in addition to a series of three questions, for each individual and print out a message regarding eligibility. If the answer to any of the questions is ‘Yes’, the individual is considered eligible. Moreover, the program should print the percentage of people that were considered eligible. The purpose of this assignment is to gain experience in python’s sequence, conditional structure, and while loop. Design your Solution: 1. Before starting, consider how to design the while loop. Hint: This program needs to record the answer to a set of three questions for a number of individuals. First, prompt the user for the total number of individuals. Then, think about a counter variable which will increment till the value is equal to this total number. a. What would be the loop condition? b. What would be the stopping criteria? c. How to modify the loop variable? 2. Your program needs to get the answer (Y/N) to the following questions about each individual, from the user in the while loop. If the answer to any of the questions is ‘Yes’, the person is considered eligible for vaccination and a message is printed to let the user know. Otherwise, a message regarding ineligibility is printed out (hint: You need to use a conditional statement in the while loop). ● Are you a Fairfax Health District resident ages 65+? (Y/N) ● Are you a health care/child care worker, or a K-12 teacher or staff member who lives or works in the Fairfax Health District? (Y/N) ● Are you a Fairfax Health District resident ages 16-64 with a high-risk medical condition or disability that increases your risk of severe illness from COVID-19? (Y/N) 3. As the next step, define a valid sequence which will store the record of eligibility of individuals. For each eligible individual, append the integer ‘1’ to the sequence, or append ‘0’ otherwise. Determine what will be the most suitable sequence to do so and where to initialize the sequence? 4. Last, compute the percentage of eligible individuals, using the following formula. a. Hint: sum() is a built-in method that returns summation of numbers in a sequence. You may need it to calculate the percentage value. percentage of eligible individuals = (sum of values of sequence/ total number of values)*100 5. A sample I/O is provided to see how the program works. You need to use the string.format() function to properly display the information. Please note sample I/O is provided to clarify what to be expected from the program. You may change the text/interface but the program needs to display the information as shown. 6. Test the application by hand-calculating several input values and use the same values to validate the operation. Sample input/output: Submission: 1) All submissions will be via BlackBoard. Please see the assignment due in this module. 2) Your accepted source for obtaining help: module resources, textbook, course instructor, and GTA. 3) The codes need to be written in the firstname_lastname_L3.py template file. Please change the name of the file and the header of the file. Example Filename: Jane_Doe_LA3.py Grading Rubrics: Excellent Average Needs Improving Points Submission Details Both file name and file header meet stated spec. Either file name is incorrect or file header is missing sections/details Both file name and file header is missing or are incorrectly implemented. __/1 User-defined names User-defined names clearly demonstrate what they represent. User-defined names generally demonstrate what they represent. User-defined names provide no insight into the referenced data. __/1 Loop and conditional structure Implementation Loop and conditional structure is implemented correctly, including all the required conditions. Loop and/or conditional structure is generally implemented, but contains minor flaws. Loop is significantly flawed, and required conditions are not implemented. __/3 Sequence Data is being stored in suitable sequence and required manipulation is performed including initialization. Data is being stored in suitable sequence and/or required manipulation is missing. Sequnece is missing to manipulate the required data. __/3 I/O All specified input and output are implemented correctly. All specified standard input and output are generally implemented with minor flaws. Specified standard input and output are not implemented. __/2 Overall __/10