Question: Using Python, write a code for the following program. After caffeine is absorbed into the body, 13% is eliminated from the body each hour. Assume

Using Python, write a code for the following program.

Using Python, write a code for the following program. After caffeine is

After caffeine is absorbed into the body, 13% is eliminated from the body each hour. Assume a person drinks an 8 oz cup of brewed coffee containing 130 mg of caffeine, and that the caffeine is absorbed immediately into the body. Write a program to calculate the following values. See Fig. 3.81. (a) The number of hours required until less than 65 mg (one-half the original amount) remain in the body. (b) The amount of caffeine in the body 24 hours after the person drinks the coffee. (c) Suppose the person drinks a cup of coffee at 7 a.m. and then drinks a cup of coffee at the end of each hour until 7 a.m. the next day. How much caffeine will be in the body at the end of the 24 hours? One cup less than 65 mg will remain after 5 hours One cup: 4.60 mg will remain after 24 hours Hourly cups 969.24 mg will remain after 24 hours

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!