Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The goal is to report weekly on a 10 weeks vaccination drive. The program will ask for the following input from the user: 1.
The goal is to report weekly on a 10 weeks vaccination drive. The program will ask for the following input from the user: 1. Population of the state (in millions) 2. Number of people already vaccinated (in millions) 3. Current weekly vaccination rate (in millions) 4. Weekly Increase in vaccination Rate as a percentage (WIR) The number of vaccinations administered each week will be WIR percent higher than the number administered the previous week. The program will print the number of people vaccinated at the end of each week during the drive. Finally, the program will print the percentage of the population vaccinated at the end of the drive. Program Prompt: Enter the Population of the state (in millions) User response: 60 Program Prompt: Enter the Number of people already vaccinated (in millions) User response: 20 Program Prompt: Enter the Current weekly vaccination rate (in millions) User response: 1.2. Program Prompt: Enter the Weekly Increase in vaccination Rate as a percentage (WIR) User response: 20 Program prints/output: At the end of week 1, people vaccinated (in millions): 21.2 t the end of week 2, people vac illions): At the end of week 3, people vaccinated (in millions): 24.368 At the end of week 4, people vaccinated (in millions): 26.4416 At the end of week 5, people vaccinated (in millions): 28.92992 At the end of week 6, people vaccinated (in millions): 31.915904 At the end of week 7, people vaccinated (in millions): 35.4990848 At the end of week 8, people vaccinated (in millions): 39.79890176 At the end of week 9, people vaccinated (in millions): 44.958682112 At the end of week 10, people vaccinated (in millions): 51.1504185344 The percentage of the population vaccinated at the end of the drive is 85.25069755733332
Step by Step Solution
★★★★★
3.40 Rating (159 Votes )
There are 3 Steps involved in it
Step: 1
def vaccinationdrive Get input from the user population floatinputEnter the Population of the ...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