Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This question may look familiar as it deals with Covid vaccination. However, it is much easier this time as you can use iterations. Assume the

This question may look familiar as it deals with Covid vaccination. However, it is much easier this time as you can use iterations. Assume the following as of Feb 10:

  • Population of the US = 330 million

  • People already vaccinated = 40 million

  • Vaccination rateis 1.5 million per day

The program takes one user input:

  • A Daily Increase Rate (DIR) of vaccines.

The number of people vaccinated each day is DIR% higher than the previous day. For each day from Feb 10 to Feb 20, the program should print the number of people vaccinated that day. The program should also print the percentage of the population vaccinated at the end of this period on Feb 20.

Sample Session:

Program Prompt: Enter the Percent Daily Increase Rate User response: 40 

Output

On Feb 10 1.5 million were vaccinated On Feb 11 2.1 million were vaccinated On Feb 12 2.94 million were vaccinated On Feb 13 4.116 million were vaccinated On Feb 14 5.7624 million were vaccinated On Feb 15 8.067359999999999 million were vaccinated On Feb 16 11.294304 million were vaccinated On Feb 17 15.8120256 million were vaccinated On Feb 18 22.13683584 million were vaccinated On Feb 19 30.991570176 million were vaccinated On Feb 20 43.38819824639999 million were vaccinated By Feb 20 57.00263450375758 % of the population is vaccinated

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

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions