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?
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 mgStep by Step Solution
There are 3 Steps involved in it
Step: 1
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