Question: VISUAL BASIC PROGRAMMING: Program 3. Caffeine After caffeine is absorbed into the body, 13% is eliminated from the body each hour. Assume a person drinks

VISUAL BASIC PROGRAMMING: Program 3. Caffeine

After caffeine is absorbed into the body, 13% is eliminated from the body each hour. Assume a person drinks an 8-ounce cup of brewed coffee containing 130 mg of caffeine, and the caffeine is absorbed immediately into the body. Write a program to calculate the following:

The number of hours required until 65 mg (one-half of the original amount) remain in the body.

The amount of caffeine in the body 24 hours after the person drinks the coffee.

Suppose the person drinks a cup of coffee at 7 AM and then drinks a cup of coffee at the end of each hour until 7 AM the next day. How much caffeine will be in the body at the end of 24 hours?

VISUAL BASIC PROGRAMMING: Program 3. Caffeine After caffeine is absorbed into the

aCaffeine Caffeine Calculate Values Calculate Values One cup: When will 65 mg. remain? 5 Hours One cup: When will 65 mg. remain? One cup: Quantity after 24 hours: One cup: Quantity after 24 hours: 4.60 mg Hourly cups: Quantity after 24 hours Hourty cups: Quantity after 24 hours 969.24 mg

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!