An antibiotic loses 4% of its effectiveness every month it is in storage. When its effectiveness is
Question:
An antibiotic loses 4% of its effectiveness every month it is in storage. When its effectiveness is
below 50% it is considered expired and must be discarded. Using a while loop, code a program that
determines how many months the drug can remain in storage before it must be discarded.
Your output must look like this:
MONTH EFFECTIVENESS
0 100.00
1 96.00
2 92.16
3 88.47
4 84.93
5 81.54
6 78.28
7 75.14
8 72.14
9 69.25
10 66.48
11 63.82
12 61.27
13 58.82
14 56.47
15 54.21
16 52.04
17 49.96 DISCARD!
Computer Architecture Fundamentals And Principles Of Computer Design
ISBN: 9781032097336
2nd Edition
Authors: Joseph D. Dumas II